body {
    font-family: 'Inter', sans-serif;
}

.glass {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo-inspired Gradient */
.gradient-text {
    background: linear-gradient(90deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-gradient {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.nav-transition {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* button multiples */
.active-tab {
    background-color: #ea580c;
    color: white !important;
    border-color: #ea580c;
}

.anim-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NAVBAR STYLES ===== */

/* Navbar with space for hanging logo */
#navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: transparent;
}

/* Scrolled navbar state */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hanging Logo Style */
.navbar-logo-container {
    position: relative;
    z-index: 100;
}

.navbar-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* When scrolled, make logo smaller */
#navbar.scrolled .navbar-logo {
    height: 50px;
}

/* Mobile logo size */
@media (max-width: 640px) {
    .navbar-logo {
        height: 60px;
    }
    #navbar.scrolled .navbar-logo {
        height: 45px;
    }
}

/* ===== DROPDOWN MENU FIX ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding-top: 0.5rem;
    overflow: hidden;
}

/* Add invisible bridge to prevent gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    background-color: #fff7ed;
    color: #ea580c;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    height: 100vh;
}

.hero-section-small {
    min-height: 50vh;
    height: 50vh;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh; /* Use svh for mobile browsers with address bar */
    }
    .hero-section-small {
        min-height: 60vh;
        height: 60vh;
    }
}

/* ===== FOOTER LOGO ===== */
.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Mobile footer logo */
@media (max-width: 640px) {
    .footer-logo {
        height: 50px;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #020617;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.mobile-menu a {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: #f97316;
}

/* ===== RESPONSIVE GRID FIXES ===== */

/* Stats section mobile */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid .glass {
        padding: 1rem;
    }
    .stats-grid .glass .text-4xl {
        font-size: 1.5rem;
    }
}

/* About section mobile */
@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .about-stats-grid > div {
        padding: 0.75rem;
    }
}

/* Game cards mobile */
@media (max-width: 480px) {
    .game-card .team-name {
        font-size: 0.875rem;
    }
    .game-card .team-logo {
        height: 3rem;
    }
    .game-card .vs-text {
        font-size: 1.5rem;
    }
}

/* Teams/Modalidades cards mobile */
@media (max-width: 640px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
    .teams-grid > a {
        aspect-ratio: 16/9;
    }
}

/* Sponsors section mobile */
@media (max-width: 480px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* CTA section mobile */
@media (max-width: 640px) {
    .cta-section {
        padding: 2rem 1rem;
        border-radius: 1.5rem;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid .col-span-2 {
        grid-column: span 1;
    }
}

/* ===== TYPOGRAPHY RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== BUTTON RESPONSIVE ===== */
@media (max-width: 480px) {
    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ===== SAFE AREA FOR NOTCHED PHONES ===== */
@supports (padding: max(0px)) {
    .public-layout {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    footer {
        padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
    }
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== IMAGE OPTIMIZATION ===== */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.aspect-ratio-box {
    position: relative;
    width: 100%;
}

.aspect-ratio-box::before {
    content: '';
    display: block;
    padding-top: 100%; /* 1:1 aspect ratio */
}

.aspect-ratio-box > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== TOUCH FRIENDLY ===== */
@media (hover: none) {
    .hover-card:hover {
        transform: none;
    }
    .nav-dropdown-menu {
        /* On touch devices, use click instead of hover */
    }
}

/* Minimum touch target size */
.touch-target {
    min-width: 44px;
    min-height: 44px;
}