/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

/* Font Classes */
.font-orbitron {
    font-family: 'Orbitron', monospace;
}

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

/* Mobile Format Optimization - 9:16 */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Mobile Container - 9:16 Aspect Ratio */
.mobile-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    aspect-ratio: 9/16;
    margin: 0 auto;
    position: relative;
}

/* Ensure frame fits within mobile viewport */
.lightning-frame {
    border-width: 6px;
    animation: lightning 2.5s infinite;
    box-shadow: 
        0 0 12px rgba(255, 0, 0, 0.4), 
        inset 0 0 12px rgba(255, 0, 0, 0.3);
}

/* Animated Lightning Frame - Thick Border with Light Effects */
.lightning-frame {
    border-width: 8px;
    animation: lightning 2.5s infinite;
    box-shadow: 
        0 0 15px rgba(255, 0, 0, 0.4), 
        inset 0 0 15px rgba(255, 0, 0, 0.3);
}

@keyframes lightning {
    0%, 100% { 
        opacity: 1; 
        border-color: #ff0000;
        box-shadow: 
            0 0 15px rgba(255, 0, 0, 0.4), 
            inset 0 0 15px rgba(255, 0, 0, 0.3);
    }
    25% { 
        opacity: 0.7; 
        border-color: #ff4444;
        box-shadow: 
            0 0 25px rgba(255, 68, 68, 0.3), 
            inset 0 0 25px rgba(255, 68, 68, 0.2);
    }
    50% { 
        opacity: 0.8; 
        border-color: #ff2222;
        box-shadow: 
            0 0 20px rgba(255, 34, 34, 0.35), 
            inset 0 0 20px rgba(255, 34, 34, 0.25);
    }
    75% { 
        opacity: 0.6; 
        border-color: #ff6666;
        box-shadow: 
            0 0 30px rgba(255, 102, 102, 0.25), 
            inset 0 0 30px rgba(255, 102, 102, 0.15);
    }
}

/* Animated Stars */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.star:nth-child(1) {
    width: 2px;
    height: 2px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 15%;
    left: 80%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    width: 2px;
    height: 2px;
    top: 30%;
    left: 30%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    width: 1px;
    height: 1px;
    top: 40%;
    left: 70%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    width: 2px;
    height: 2px;
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.star:nth-child(6) {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 90%;
    animation-delay: 0.3s;
}

.star:nth-child(7) {
    width: 1px;
    height: 1px;
    top: 10%;
    left: 50%;
    animation-delay: 0.8s;
}

.star:nth-child(8) {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 40%;
    animation-delay: 1.3s;
}

.star:nth-child(9) {
    width: 2px;
    height: 2px;
    top: 25%;
    left: 60%;
    animation-delay: 1.8s;
}

.star:nth-child(10) {
    width: 1px;
    height: 1px;
    top: 50%;
    left: 85%;
    animation-delay: 0.2s;
}

.star:nth-child(11) {
    width: 3px;
    height: 3px;
    top: 35%;
    left: 15%;
    animation-delay: 0.7s;
}

.star:nth-child(12) {
    width: 2px;
    height: 2px;
    top: 75%;
    left: 65%;
    animation-delay: 1.2s;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1.2);
    }
}

/* Cricket Stadium Night Background */
.cricket-stadium-bg {
    position: relative;
}

.cricket-stadium-bg img {
    filter: brightness(0.7) contrast(1.1);
    object-position: center center;
}

.stadium-fullscreen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.cricket-stadium-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

/* Profile Circle with Fire Effects */
.fire-circle-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffd700;
    box-shadow: 
        0 0 20px #ffd700,
        inset 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.lighting-effects {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        #ffd700,
        #ff6b35,
        #ffd700,
        transparent
    );
    animation: rotate 3s linear infinite;
    z-index: 1;
}

.fire-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff4500,
        #ff6347,
        #ffd700,
        #ff4500,
        #ff6347
    );
    animation: fire-rotate 2s linear infinite;
    filter: blur(3px);
    opacity: 0.8;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fire-rotate {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Logo Overlay Effect */
.logo-overlay {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    z-index: 3;
}

/* White Text with Glow Effect */
.white-text-glow {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.3),
        3px 3px 6px rgba(0,0,0,0.8);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Zoom Animation for Title */
@keyframes pulse-zoom {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

.animate-pulse-zoom {
    animation: pulse-zoom 2s ease-in-out infinite;
}

/* Telegram Button Animation */
.telegram-button {
    animation: zoom-bounce 2s ease-in-out infinite;
    background: linear-gradient(45deg, #0088cc, #229ed9);
    box-shadow: 
        0 4px 15px rgba(0, 136, 204, 0.4),
        0 0 20px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
}

.telegram-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 136, 204, 0.6),
        0 0 30px rgba(0, 136, 204, 0.5);
}

@keyframes zoom-bounce {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.08); 
    }
}

/* Timer Glow Effect */
.timer-glow {
    text-shadow: 
        0 0 10px #ef4444,
        0 0 20px #ef4444,
        0 0 30px #ef4444,
        0 0 40px #ff6b6b;
    animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px #ef4444,
            0 0 20px #ef4444,
            0 0 30px #ef4444,
            0 0 40px #ff6b6b;
    }
    50% { 
        text-shadow: 
            0 0 20px #ef4444,
            0 0 30px #ef4444,
            0 0 40px #ef4444,
            0 0 50px #ff6b6b;
    }
}

/* Bhagwa Flags */
.flag-container {
    width: 40px;
    height: 60px;
    position: relative;
}

.saffron-flag {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        #ff9933 0%,
        #ff9933 33%,
        #ffffff 33%,
        #ffffff 66%,
        #138808 66%,
        #138808 100%
    );
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.saffron-flag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #000080;
    border-radius: 50%;
    border: 2px solid #000080;
}

.saffron-flag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 1px;
    background: #000080;
    box-shadow: 
        0 -2px 0 #000080,
        0 -4px 0 #000080,
        0 2px 0 #000080,
        0 4px 0 #000080;
}

/* Flag Wave Animation */
@keyframes wave {
    0%, 100% { 
        transform: rotateY(0deg) rotateX(0deg); 
    }
    25% { 
        transform: rotateY(5deg) rotateX(2deg); 
    }
    75% { 
        transform: rotateY(-5deg) rotateX(-2deg); 
    }
}

.animate-wave {
    animation: wave 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Mobile Content Optimization */
.mobile-content {
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-content::-webkit-scrollbar {
    display: none;
}

/* Mobile Responsive Adjustments - 9:16 Optimized */
@media (max-width: 480px) {
    .mobile-container {
        width: 100vw;
        height: 100vh;
        aspect-ratio: 9/16;
    }
    
    .lightning-frame {
        border-width: 4px;
        box-shadow: 
            0 0 8px rgba(255, 0, 0, 0.4), 
            inset 0 0 8px rgba(255, 0, 0, 0.3);
    }
    
    .fire-circle-container {
        width: 90px;
        height: 90px;
    }
    
    .profile-circle {
        width: 90px;
        height: 90px;
    }
    
    .white-text-glow {
        font-size: 1.8rem;
    }
    
    .telegram-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .mobile-content {
        padding: 8px 12px;
        gap: 6px;
    }
    
    /* Compact spacing for mobile */
    .mobile-content > * {
        margin-bottom: 4px;
    }
    
    /* Stadium background mobile optimization */
    .cricket-stadium-bg img {
        object-position: center center;
        object-fit: cover;
        width: 100vw;
        height: 100vh;
    }
    
    /* Better content visibility on mobile */
    .cricket-stadium-bg::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    }
}

/* Landscape mode adjustments */
@media (orientation: landscape) and (max-height: 480px) {
    .mobile-container {
        aspect-ratio: 16/9;
        width: 100vh;
        height: 100vw;
    }
}

/* Additional Visual Enhancements */
.timer-container {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    padding: 20px;
}

/* Subtle Glow Effects */
h1, h2, h3 {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Ensure no text overlap */
.text-center > * {
    margin-bottom: 8px;
}

.text-center > *:last-child {
    margin-bottom: 0;
}