/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Ensure page starts at top */
body {
    scroll-behavior: smooth;
}

/* Force initial scroll position */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', 'Source Han Sans TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('images/teams/3.jpeg') center center/cover no-repeat fixed, #000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
}





/* Fallback for logo loading error */
.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-fallback .logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Impact', 'Arial Black', sans-serif;
    background: linear-gradient(135deg, 
        #ff6b35 0%, 
        #f7931e 25%, 
        #ffd700 50%, 
        #d4af37 75%, 
        #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);

}

.logo-fallback .logo-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-top: 0.3rem;
}



/* Animations */


@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}







/* Main Display Section */
.main-display {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.champion-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: scale(1.05);
}

.background-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.background-image.error {
    opacity: 0;
}

/* Ensure proper scaling on different screen ratios */
@media (aspect-ratio: 16/9) {
    .background-image {
        object-position: center center;
    }
}

@media (aspect-ratio: 4/3) {
    .background-image {
        object-position: center top;
    }
}

@media (max-aspect-ratio: 1/1) {
    .background-image {
        object-position: center center;
        object-fit: cover;
    }
}

/* Loading placeholder for background */
.champion-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(45, 45, 45, 0.8) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.champion-background.image-loaded::before {
    opacity: 0;
}

/* Fallback background pattern when image fails */
.champion-background.image-error::before {
    background: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    opacity: 1;
}

/* Loading spinner */
.champion-background::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(212, 175, 55, 0.5);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.champion-background.image-loaded::after {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
}

.champion-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    padding-right: 0.5rem;
}

.versus-side {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-left: 0.5rem;
    position: relative;
}

/* Team introduction box - flies in after 5 seconds */
.team-info {
    max-width: 600px;
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 20px;
    min-height: 500px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 1s ease-out 5s forwards;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    transform-origin: top left;
}

/* Minimized state - keep original size but hide content */
.team-info.minimized {
    max-height: 70px;
    padding: 1rem 2rem;
    overflow: hidden;
}

/* Content wrapper for smooth animation */
.team-content {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: top center;
    overflow: hidden;
}

/* When minimized, slide content up and fade out */
.team-info.minimized .team-content {
    transform: translateY(-100%) scaleY(0);
    opacity: 0;
    max-height: 0;
}

/* Minimize button - top left, no background */
.minimize-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    color: rgba(212, 175, 55, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.minimize-btn:hover {
    color: rgba(212, 175, 55, 1);
    transform: scale(1.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.minimize-btn:active {
    transform: scale(1.1);
}

/* Keep button in same position when minimized */
.team-info.minimized .minimize-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    color: rgba(212, 175, 55, 1);
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    transform: none;
}

.team-info.minimized .minimize-btn:hover {
    color: rgba(212, 175, 55, 1);
    transform: scale(1.2);
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fly-in animation for VS box - desktop version */
@keyframes flyInFromRight {
    0% {
        transform: translateY(10%) translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(10%) translateX(-40%);
        opacity: 1;
    }
}

.team-name {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        2px 2px 0px #000000,
        -2px -2px 0px #000000,
        2px -2px 0px #000000,
        -2px 2px 0px #000000,
        0px 2px 0px #000000,
        2px 0px 0px #000000,
        0px -2px 0px #000000,
        -2px 0px 0px #000000,
        0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 0.05em;
    word-break: keep-all;
    overflow-wrap: break-word;
    position: relative;
    font-family: 'Impact', 'Arial Black', sans-serif;
}



.team-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 140, 0, 0.25) 50%, 
        rgba(212, 175, 55, 0.2) 100%);
    border-radius: 15px;
    z-index: -1;
    filter: blur(20px);
    animation: backgroundPulse 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            2px 2px 0px #000000,
            -2px -2px 0px #000000,
            2px -2px 0px #000000,
            -2px 2px 0px #000000,
            0px 2px 0px #000000,
            2px 0px 0px #000000,
            0px -2px 0px #000000,
            -2px 0px 0px #000000,
            0 0 20px rgba(255, 215, 0, 0.6);
    }
    100% {
        text-shadow: 
            2px 2px 0px #000000,
            -2px -2px 0px #000000,
            2px -2px 0px #000000,
            -2px 2px 0px #000000,
            0px 2px 0px #000000,
            2px 0px 0px #000000,
            0px -2px 0px #000000,
            -2px 0px 0px #000000,
            0 0 30px rgba(255, 215, 0, 0.9),
            0 0 40px rgba(255, 140, 0, 0.6);
    }
}

@keyframes backgroundPulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Mobile team photo - hidden on desktop */
.mobile-team-photo {
    display: none;
}

/* Floating Logo - Desktop */
.floating-logo {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: logoFloat 2s ease-out 0.5s both;
}

/* Hide floating logo on mobile to prevent conflicts */
@media (max-width: 767px) {
    .floating-logo {
        display: none;
    }
}

.floating-logo-image {
    height: 120px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: 
        drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    animation: logoGlow 3s ease-in-out infinite alternate;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

/* Responsive sizing for desktop floating logo */
@media (min-width: 768px) and (max-width: 1024px) {
    .floating-logo-image {
        height: 100px;
        max-width: 250px;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .floating-logo-image {
        height: 120px;
        max-width: 300px;
    }
}

@media (min-width: 1441px) {
    .floating-logo-image {
        height: 140px;
        max-width: 350px;
    }
}

.floating-logo-image:hover {
    transform: scale(1.1);
    filter: 
        drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 30px rgba(212, 175, 55, 0.8))
        drop-shadow(0 0 40px rgba(255, 107, 53, 0.6));
}

@keyframes logoFloat {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoGlow {
    0% {
        filter: 
            drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
        transform: scale(1);
    }
    100% {
        filter: 
            drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 25px rgba(212, 175, 55, 0.8))
            drop-shadow(0 0 35px rgba(255, 107, 53, 0.6));
        transform: scale(1.02);
    }
}

/* Team Logo Display */
.team-logo-display {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    animation: logoFadeIn 1.5s ease-out 1s both;
}

.team-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 15px;
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 140, 0, 0.05) 100%);
    transition: all 0.3s ease;

}

.team-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Fallback for missing logo */
.team-logo-img[src=""], .team-logo-img:not([src]) {
    display: none;
}

.team-logo-display:has(.team-logo-img[src=""]), 
.team-logo-display:has(.team-logo-img:not([src])) {
    display: none;
}

.team-description {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 
        1px 1px 0px #000000,
        -1px -1px 0px #000000,
        1px -1px 0px #000000,
        -1px 1px 0px #000000,
        0px 1px 0px #000000,
        1px 0px 0px #000000,
        0px -1px 0px #000000,
        -1px 0px 0px #000000;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

.team-description:hover {
    text-shadow: 
        1px 1px 0px #000000,
        -1px -1px 0px #000000,
        1px -1px 0px #000000,
        -1px 1px 0px #000000,
        0px 1px 0px #000000,
        1px 0px 0px #000000,
        0px -1px 0px #000000,
        -1px 0px 0px #000000,
        0 0 15px rgba(212, 175, 55, 0.5);
}



.streak-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.95) 0%, 
        rgba(255, 140, 0, 0.98) 25%,
        rgba(255, 215, 0, 1) 50%,
        rgba(255, 140, 0, 0.98) 75%,
        rgba(255, 69, 0, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 140, 0, 0.8),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 1s ease-out 1s forwards, challengePulse 3s ease-in-out infinite 2s;
    width: 100%;
    max-width: 450px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.streak-counter:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 1) 0%, 
        rgba(255, 140, 0, 1) 25%,
        rgba(255, 215, 0, 1) 50%,
        rgba(255, 140, 0, 1) 75%,
        rgba(255, 69, 0, 1) 100%);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(255, 140, 0, 1),
        0 0 120px rgba(255, 69, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

.streak-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes challengePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 140, 0, 0.8);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 0 60px rgba(255, 140, 0, 1),
            0 0 80px rgba(255, 69, 0, 0.6);
    }
}

.streak-label {
    font-size: 1rem;
    font-weight: 800;
    color: #1a0f08;
    text-shadow: 
        0 2px 4px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(255, 255, 255, 0.6);
    z-index: 1;
    position: relative;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}

.streak-number {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        2px 2px 0px #000000,
        -2px -2px 0px #000000,
        2px -2px 0px #000000,
        -2px 2px 0px #000000,
        0px 2px 0px #000000,
        2px 0px 0px #000000,
        0px -2px 0px #000000,
        -2px 0px 0px #000000;
    z-index: 1;
    position: relative;
    transition: all 0.3s ease-in-out;
    font-family: 'Impact', 'Arial Black', sans-serif;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    filter: none;
    margin: 0 0.5rem;
    display: inline;
}



.streak-number.updating {
    animation: numberPulse 0.6s ease-in-out;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Player Carousel */
.player-carousel {
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 1s ease-out 1.5s forwards;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    width: 100%;
    overflow: hidden; /* Desktop mask */
}

/* Remove mask layer on mobile */
@media (max-width: 767px) {
    .carousel-container {
        overflow: visible !important;
    }
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow: visible;
    scroll-behavior: smooth;
    padding: 1rem 0;
    cursor: grab;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    width: auto;
    flex: none;
}

/* Only apply transition when not animating */
.carousel-track:not([style*="continuousScroll"]) {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track:active {
    cursor: grabbing;
}

.player-card {
    flex: 0 0 150px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.player-card:hover::before {
    opacity: 1;
}

.player-photo {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
}

.player-photo[src*="default-player.jpg"]::before,
.player-photo:not([src])::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.player-card:hover .player-photo {
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

.player-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
    word-break: keep-all;
}

.player-position {
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn.prev-btn::before {
    content: '‹';
}

.carousel-btn.next-btn::before {
    content: '›';
}

/* Versus Container (now in sidebar) - flies in from right after 3 seconds */
.versus-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(10%) translateX(-40%);
    opacity: 0;
    animation: flyInFromRight 1s ease-out 3s forwards;
}

.team-logo {
    flex: 1;
    max-width: 160px;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-logo:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-logo:hover::before {
    opacity: 1;
}

.team-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.empty-challenger .team-logo img {
    opacity: 0.3;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.team-logo:hover img {
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.2);
}

.team-label {
    display: block;
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.6);
}

.champion-logo .team-label {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Empty Challenger State Styles */
.empty-challenger {
    border: 2px dashed rgba(255, 215, 0, 0.8);
    background: rgba(255, 215, 0, 0.15);
    position: relative;
    animation: challengerPulse 2s ease-in-out infinite alternate;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.empty-challenger:hover {
    border-color: rgba(255, 215, 0, 1);
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 50px rgba(255, 215, 0, 0.4),
        inset 0 0 30px rgba(255, 215, 0, 0.2);
}

.empty-challenger::before {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, transparent 50%);
    opacity: 1;
}

.empty-challenger::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.2) 50%,
        transparent 70%
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.empty-challenger-label {
    color: rgba(255, 215, 0, 1) !important;
    font-style: italic;
    animation: labelFade 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.active-challenger {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@keyframes challengerPulse {
    0% {
        border-color: rgba(255, 215, 0, 0.6);
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.4),
            inset 0 0 15px rgba(255, 215, 0, 0.1);
        transform: scale(1);
    }
    100% {
        border-color: rgba(255, 215, 0, 1);
        box-shadow: 
            0 0 35px rgba(255, 215, 0, 0.7),
            0 0 50px rgba(255, 215, 0, 0.5),
            inset 0 0 25px rgba(255, 215, 0, 0.2);
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes labelFade {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Challenge Status Indicator */
.challenge-status {
    margin-top: 1rem;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.active-challenger .challenge-status {
    opacity: 0;
    pointer-events: none;
}

.status-text {
    display: block;
    color: rgba(212, 175, 55, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        color: rgba(212, 175, 55, 0.8);
    }
    100% {
        text-shadow: 
            1px 1px 2px rgba(0, 0, 0, 0.5),
            0 0 10px rgba(212, 175, 55, 0.6);
        color: rgba(212, 175, 55, 1);
    }
}

.status-indicator {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
    animation: pulseDot 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: ripple 1.2s ease-in-out infinite;
}

.pulse-dot:nth-child(1) {
    animation-delay: 0s;
}

.pulse-dot:nth-child(1)::before {
    animation-delay: 0s;
}

.pulse-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.pulse-dot:nth-child(2)::before {
    animation-delay: 0.2s;
}

.pulse-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.pulse-dot:nth-child(3)::before {
    animation-delay: 0.4s;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.vs-element {
    flex: 0 0 200px;
    width: 200px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Match Information Styles - Now positioned outside VS container */
.match-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.match-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.match-label {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.6);
}

.match-value {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}






.vs-logo {
    width: 144px;
    height: 96px;
    animation: vsPulse 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
    filter: 
        drop-shadow(0 0 10px rgba(212, 175, 55, 0.8))
        drop-shadow(0 0 20px rgba(255, 69, 0, 0.6));
    transform-style: preserve-3d;
}

.vs-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 30px rgba(212, 175, 55, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: vsPulse 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 0.1em;
    transform-style: preserve-3d;
}



@keyframes vsPulse {
    0% { 
        transform: scale(1) rotateY(0deg);
        text-shadow: 
            0 0 10px rgba(212, 175, 55, 0.8),
            0 0 20px rgba(212, 175, 55, 0.6),
            0 0 30px rgba(212, 175, 55, 0.4),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    100% { 
        transform: scale(1.05) rotateY(5deg);
        text-shadow: 
            0 0 15px rgba(212, 175, 55, 1),
            0 0 25px rgba(212, 175, 55, 0.8),
            0 0 35px rgba(212, 175, 55, 0.6),
            2px 2px 6px rgba(0, 0, 0, 0.9);
    }
}

/* Challenge Form Section */
.challenge-form-section {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Form Header */
.form-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.form-container h2 {
    color: #d4af37;
    font-size: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* WhatsApp inquiry styles removed from form header */

/* Form Progress Indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.step-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #333;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.progress-step.active .step-label {
    color: #d4af37;
    font-weight: bold;
}

.progress-step.completed .step-number {
    background: rgba(76, 175, 80, 0.8);
    color: #fff;
    border-color: #4caf50;
}

.progress-step.completed .step-label {
    color: #4caf50;
}

/* Multi-step Form */
.multi-step-form {
    position: relative;
    min-height: 400px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.field-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.3rem;
    font-style: italic;
}

/* File Upload Styles */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.file-upload-area:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.1);
}

.file-upload-area.dragover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;
}

.file-preview .remove-file {
    background: rgba(244, 67, 54, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Confirmation Summary */
.confirmation-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary-section {
    margin-bottom: 2rem;
}

.summary-section h4 {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.summary-item {
    display: flex;
    margin-bottom: 0.8rem;
    align-items: flex-start;
}

.summary-item .label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    min-width: 120px;
    flex-shrink: 0;
}

.summary-item .value {
    color: #fff;
    flex: 1;
    word-break: break-word;
}

.uploaded-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.uploaded-file-item::before {
    content: '📎';
    font-size: 1rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    color: #fff;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-color: #d4af37;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    font-size: 0.8rem;
}

.terms-link {
    color: #d4af37;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.terms-link:hover {
    border-bottom-color: #d4af37;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.submit-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #333;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 180px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.hidden {
    display: none;
}

/* Hamburger Menu Button with Logo */
.hamburger-menu {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1002;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    padding: 6px;
}

.hamburger-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.hamburger-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Hamburger Lines Styling */
.hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px; /* Increased height for better spacing */
    transition: all 0.3s ease;
}

.hamburger-lines .line {
    display: block;
    width: 100%;
    height: 3px; /* Slightly thicker for better visibility */
    background: #1a1a1a; /* Darker for better contrast */
    border-radius: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

/* Logo styling (hidden by default) */
.hamburger-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger-logo.hidden {
    display: none;
}

/* Active state - hide lines, show logo */
.hamburger-menu.active .hamburger-lines {
    display: none;
}

.hamburger-menu.active .hamburger-logo {
    display: block;
}

/* Hamburger Menu Floating Animations */
@keyframes logoFloat {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoGlow {
    0% {
        filter: 
            drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
        transform: scale(1);
    }
    100% {
        filter: 
            drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 20px rgba(212, 175, 55, 0.8))
            drop-shadow(0 0 25px rgba(255, 107, 53, 0.6));
        transform: scale(1.02);
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1001;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    opacity: 1; /* Immediately visible */
    animation: whatsappFloat 1s ease-out 0s both, whatsappPulse 2s infinite 1s; /* Float in immediately, then pulse */
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    object-fit: contain;
    transition: all 0.3s ease;
}

@keyframes whatsappFloat {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    }
}

/* Hamburger Navigation Menu - Hidden on Desktop */
.hamburger-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    display: none; /* Hidden on desktop */
}

.hamburger-nav.active {
    visibility: visible;
    opacity: 1;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 2px solid rgba(212, 175, 55, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.hamburger-nav.active .nav-menu {
    transform: translateX(0);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
}

.nav-header h3 {
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}



.nav-links {
    list-style: none;
    padding: 2rem 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: #d4af37;
    color: #d4af37;
    transform: translateX(5px);
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.nav-dropdown .dropdown-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.nav-dropdown.active .dropdown-submenu {
    max-height: 200px;
}

.dropdown-submenu a {
    padding: 0.8rem 3rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-left: 4px solid transparent;
}

.dropdown-submenu a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
}

/* Hide old navigation */
.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    min-height: 40px;
}

.main-nav a:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.main-nav .whatsapp-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    min-width: 40px;
    height: 40px;
}

.main-nav .whatsapp-nav-link:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: scale(1.1);
}

.whatsapp-nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Dropdown Menu Styles */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-nav .dropdown-menu li {
    list-style: none;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 0.7rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0 0.5rem;
    min-height: auto;
    font-size: 0.9rem;
}

.main-nav .dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
/* Player Photo Modal */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.player-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.player-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(244, 67, 54, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

#modal-player-photo {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 3px solid #d4af37;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.modal-player-info {
    text-align: center;
    color: #333;
}

#modal-player-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#modal-player-position {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.modal-player-details {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-player-details span {
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Make player photos clickable */
.player-photo {
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.5);
    border-color: #d4af37;
}

.player-card {
    cursor: pointer;
}

.player-card:hover .player-photo {
    transform: scale(1.05);
}
/* Desktop-specific team-info adjustments */
@media (min-width: 769px) {
    .team-info {
        min-height: 600px;
        padding: 3rem;
    }
    
    /* Ensure winning streak bar fits properly */
    .streak-counter {
        margin-top: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .team-info {
        min-height: 650px;
        padding: 3.5rem;
    }
}