/* ==========================================
   VARIABLES
   ========================================== */
:root {
    --primary-color: #003d82;
    --secondary-color: #00a7e1;
    --gold-color: #ffd700;
    --dark-bg: #0a1628;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   GLOBAL
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar:not(.ucl-nav) {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%) !important;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1rem;
    letter-spacing: 1px;
}

.nav-link:not(.ucl-link):not(.ucl-mobile-link) {
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:not(.ucl-link):not(.ucl-mobile-link):hover {
    color: var(--gold-color) !important;
    transform: translateY(-2px);
}

.nav-link.active:not(.ucl-link):not(.ucl-mobile-link) {
    color: var(--gold-color) !important;
}

.nav-link:hover {
    color: var(--gold-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--gold-color) !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-logo img {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    border-radius: 2px;
}

/* ==========================================
   MATCH CARD
   ========================================== */
.match-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.match-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.match-teams .team {
    flex: 1;
    text-align: center;
}

.match-teams .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.match-teams .team span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.match-teams .vs {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.match-phase {
    text-align: center;
    font-size: 0.75rem;
    color: white;
    background: var(--primary-color);
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================
   TABLE STANDINGS
   ========================================== */
.table-standings {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-standings thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.table-standings thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-standings tbody tr {
    transition: all 0.3s;
}

.table-standings tbody tr:hover {
    background: rgba(0, 61, 130, 0.05);
    transform: scale(1.01);
}

.table-standings tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.position {
    font-weight: 700;
    font-size: 1.1rem;
}

.position-1, .position-2, .position-3, .position-4,
.position-5, .position-6, .position-7, .position-8 {
    color: #28a745;
}

.position-9, .position-10, .position-11, .position-12,
.position-13, .position-14, .position-15, .position-16,
.position-17, .position-18, .position-19, .position-20,
.position-21, .position-22, .position-23, .position-24 {
    color: #ffc107;
}

.team-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ==========================================
   NEWS CARD
   ========================================== */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
}

.social-links a {
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--gold-color) !important;
    transform: translateY(-3px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .match-teams .team img {
        width: 40px;
        height: 40px;
    }
}

.team-letter-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003d82, #00a7e1);
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

body { padding-top: 70px; }
@media (max-width: 991px){
  body { padding-top: 66px; }
}

.ucl-nav{
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ucl-btn-gold{
  box-shadow: 0 12px 26px rgba(230,194,0,.18);
}