/* UEFA Monte Sião - Global Styles (V2 Satellite Template) */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Brand Colors - UEFA Original (Fallbacks) */
    --uefa-dark: #090e23;
    --uefa-dark-alt: #101635;
    --uefa-blue: #002387;
    --uefa-cyan: #00ffea;
    --uefa-gold: #d4af37;
    --uefa-white: #ffffff;
    --uefa-gray: #b0b3c6;

    /* Dynamic Colors from LRS (Hub) - These ARE the primary focus now */
    /* Note: --pri and --sec are injected via style tag in header.php */
    
    --accent: var(--uefa-gold);

    /* Functional */
    --bg-body: var(--pri);
    --text-main: var(--uefa-white);
    --text-muted: var(--uefa-gray);

    /* Cores de Texto */
    --uefa-white: #ffffff;
    --uefa-gray: #d1d1d1;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(10px);
}

body {
    background-color: var(--bg-body);
    /* Gradient adapted to use the secondary color as base */
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, var(--bg-body) 60%);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .table th, .btn {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: var(--pri);
    transition: 0.3s;
}

a:hover {
    color: var(--uefa-white);
    text-shadow: 0 0 8px var(--pri);
}

/* Glassmorphism Utilities */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    color: white;
    padding: 1.5rem;
}

/* Navbar - Adaptive Hub Colors */
.navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--pri);
    padding: 0.5rem 0 !important;
}

.nav-link {
    color: white !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.85rem; /* Reduced from 0.95rem */
    padding: 0.4rem 0.6rem !important; /* Reduced padding inherited from uefa */
    transition: all 0.3s ease;
    border-radius: 20px;
    white-space: nowrap; /* Prevent stacking */
}

.nav-link:hover {
    color: var(--pri) !important;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
    }
}

.nav-link.active {
    background-color: var(--sec) !important;
    color: var(--pri) !important;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Matches Bar */
.matches-bar-v2 {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-bottom: 0;
}

.match-mini-card {
    min-width: 220px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.match-mini-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pri);
    transform: translateY(-2px);
}

/* Calendar Hero */
.calendar-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.calendar-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pri), var(--sec));
}

/* Countdown */
.countdown-box {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.unit-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    min-width: 70px;
    text-align: center;
}

.unit-value {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.unit-label {
    font-size: 0.65rem;
    color: var(--uefa-gray);
    letter-spacing: 1px;
}

/* Tables */
.table-v2 {
    width: 100%;
    margin-bottom: 0;
}

.table-v2 th {
    background: rgba(0,0,0,0.6);
    color: var(--uefa-white);
    padding: 12px;
    font-weight: 400;
}

.table-v2 td {
    padding: 1.25rem 0.5rem;
    vertical-align: middle;
    border: none;
    color: #ffffff;
}

/* Rank Circles */
.rank-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.rank-1 { background: linear-gradient(45deg, #ffd700, #ff8c00); color: black; box-shadow: 0 0 10px rgba(255,215,0,0.5); }
.rank-2 { background: linear-gradient(45deg, #c0c0c0, #808080); color: black; }
.rank-3 { background: linear-gradient(45deg, #cd7f32, #8b4513); color: white; }

/* Utilities */
.fw-black { font-weight: 900; }
.text-pri { color: var(--pri) !important; }
.text-accent { color: var(--accent) !important; }
.hover-scale:hover { transform: scale(1.02); }
.transition-all { transition: all 0.3s ease; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.text-muted { color: rgba(255,255,255,0.4) !important; }
.letter-spacing-2 { letter-spacing: 2px; }

/* App Buttons */
.app-store-btn {
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    transition: 0.2s;
}

.app-store-btn:hover {
    border-color: white;
    background: #111;
}

/* Animations */
@keyframes pulse-neon {
    0% { box-shadow: 0 0 5px var(--pri); }
    50% { box-shadow: 0 0 20px var(--pri); }
    100% { box-shadow: 0 0 5px var(--pri); }
}

.shadow-neon { animation: pulse-neon 2s infinite; }

/* Footer Styles */
.uefa-footer {
    background: #050a1f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.uefa-footer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uefa-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: 0.3s;
}

.uefa-footer a:hover {
    color: var(--pri);
    padding-left: 5px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white !important;
}

.footer-social-icon:hover {
    background: var(--pri);
    border-color: var(--pri);
    color: var(--sec) !important;
}

/* Menu Acesso Estilizado */
.nav-link-acesso {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px;
    padding: 6px 18px !important;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff !important;
    transition: all 0.3s ease;
}
.nav-link-acesso:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.nav-link-acesso::after {
    margin-left: 5px;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.uefa-legal-links a {
    color: rgba(255, 255, 255, 0.4) !important;
    display: inline-block;
    margin: 0;
}

.uefa-legal-links a:hover {
    color: white !important;
}
