/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-container {
        max-width: 1400px;
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content {
        gap: 60px;
    }
    
    .tokenomics-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet Landscape (768px to 1023px) */
@media (max-width: 1023px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .about-left {
        order: 2;
    }
    
    .about-right {
        order: 1;
    }
    
    .philosophy-stats {
        justify-content: space-around;
        gap: 20px;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .live-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .roadmap-phases {
        gap: 20px;
    }
    
    .phase-chip {
        width: 150px;
        height: 150px;
    }
    
    .phase-number {
        font-size: 1.5rem;
    }
    
    .chip-content h3 {
        font-size: 0.9rem;
    }
    
    .chip-content p {
        font-size: 0.7rem;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .roulette-wheel {
        width: 250px;
        height: 250px;
    }
    
    .wheel-center {
        width: 80px;
        height: 80px;
    }
    
    .ticker {
        font-size: 1rem;
    }
    
    .wheel-link {
        font-size: 0.8rem;
        padding: 6px 10px;
        transform: 
            translate(-50%, -50%) 
            rotate(var(--angle)) 
            translateY(-100px);
    }
    
    .wheel-link:hover {
        transform: 
            translate(-50%, -50%) 
            rotate(var(--angle)) 
            translateY(-110px) 
            scale(1.1);
    }
}

/* Tablet Portrait (481px to 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    #interactive-dice {
        width: 250px;
        height: 250px;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    .lead-text {
        font-size: 1.5rem;
    }
    
    .philosophy-stats {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .tokenomics-card {
        padding: 30px 20px;
    }
    
    .live-stats {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .counter-value {
        font-size: 1.5rem;
    }
    
    .casino-table {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .roadmap-phases {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .phase-chip {
        width: 200px;
        height: 200px;
    }
    
    .phase-number {
        font-size: 2rem;
    }
    
    .chip-content h3 {
        font-size: 1rem;
    }
    
    .chip-content p {
        font-size: 0.8rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .meme-wall {
        padding: 30px 20px;
    }
    
    .meme-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .roulette-wheel {
        width: 200px;
        height: 200px;
    }
    
    .wheel-center {
        width: 60px;
        height: 60px;
    }
    
    .ticker {
        font-size: 0.9rem;
    }
    
    .wheel-link {
        font-size: 0.7rem;
        padding: 4px 8px;
        transform: 
            translate(-50%, -50%) 
            rotate(var(--angle)) 
            translateY(-80px);
    }
    
    .wheel-link:hover {
        transform: 
            translate(-50%, -50%) 
            rotate(var(--angle)) 
            translateY(-85px) 
            scale(1.05);
    }
}

/* Mobile (320px to 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-btn {
        padding: 14px 25px;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .dice-container {
        width: 250px;
        height: 250px;
    }
    
    .loading-text {
        font-size: 1.5rem;
    }
    
    .audio-controls {
        top: 15px;
        right: 15px;
    }
    
    .audio-btn {
        width: 40px;
        height: 40px;
    }
    
    .audio-icon {
        font-size: 1rem;
    }
    
    #interactive-dice {
        width: 200px;
        height: 200px;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .lead-text {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .tokenomics-card {
        padding: 25px 15px;
    }
    
    .tokenomics-card h3 {
        font-size: 1.3rem;
    }
    
    .tokenomics-card p {
        font-size: 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .math-line {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .live-stats {
        padding: 25px 15px;
    }
    
    .counter-value {
        font-size: 1.3rem;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }
    
    .casino-table {
        padding: 30px 15px;
        margin: 0 5px;
    }
    
    .phase-chip {
        width: 160px;
        height: 160px;
    }
    
    .phase-number {
        font-size: 1.5rem;
    }
    
    .chip-content {
        padding: 15px;
    }
    
    .chip-content h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .chip-content p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .club-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .velvet-rope {
        width: 150px;
        height: 15px;
        margin-bottom: 30px;
    }
    
    .velvet-rope::before,
    .velvet-rope::after {
        width: 12px;
        height: 12px;
    }
    
    .social-btn {
        padding: 15px 20px;
        font-size: 1rem;
        gap: 10px;
    }
    
    .social-icon {
        font-size: 1.3rem;
    }
    
    .meme-wall h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .submit-meme-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .footer-roulette {
        padding: 60px 0;
    }
    
    .roulette-wheel {
        width: 180px;
        height: 180px;
    }
    
    .wheel-center {
        width: 50px;
        height: 50px;
    }
    
    .ticker {
        font-size: 0.8rem;
    }
    
    .wheel-link {
        font-size: 0.6rem;
        padding: 3px 6px;
        transform: 
            translate(-50%, -50%) 
            rotate(var(--angle)) 
            translateY(-70px);
    }
    
    .wheel-link:hover {
        transform: 
            translate(-50%, -50%) 
            rotate(var(--angle)) 
            translateY(-75px) 
            scale(1.05);
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .dice-container {
        width: 200px;
        height: 200px;
    }
    
    #interactive-dice {
        width: 180px;
        height: 180px;
    }
    
    .phase-chip {
        width: 140px;
        height: 140px;
    }
    
    .roulette-wheel {
        width: 160px;
        height: 160px;
    }
    
    .wheel-center {
        width: 45px;
        height: 45px;
    }
    
    .ticker {
        font-size: 0.7rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-cta {
        gap: 15px;
    }
    
    .scroll-indicator {
        bottom: 10px;
    }
    
    .dice-container {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .loading-text {
        font-size: 1.2rem;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .cta-btn,
    .social-btn,
    .submit-meme-btn {
        -webkit-font-smoothing: antialiased;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .neon-glow,
    .floating-dice,
    .roulette-wheel {
        animation: none !important;
    }
    
    .scroll-indicator {
        animation: none !important;
    }
}

/* Dark Mode Support (if system preference) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Print Styles */
@media print {
    .loading-screen,
    .audio-controls,
    .hero-background,
    .floating-dice,
    .neon-glow {
        display: none !important;
    }
    
    .main-content {
        opacity: 1 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
        text-shadow: none !important;
    }
    
    .cta-btn,
    .social-btn {
        border: 2px solid black !important;
        background: white !important;
        color: black !important;
    }
}

/* Focus and Accessibility Improvements */
@media (prefers-reduced-motion: no-preference) {
    .cta-btn:focus,
    .social-btn:focus,
    .submit-meme-btn:focus,
    .audio-btn:focus {
        outline: 3px solid var(--gold-primary);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-btn,
    .social-btn,
    .phase-chip,
    .wheel-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .hover-lift:hover,
    .hover-glow-gold:hover,
    .hover-glow-red:hover {
        transform: none;
        box-shadow: none;
    }
    
    .cta-btn:active,
    .social-btn:active {
        transform: scale(0.95);
    }
}
