/* =========================================
   DAUS GAMING - Responsive Stylesheet
   Mobile, tablet, and large screen adaptations
   ========================================= */

/* Tablet & small desktop */
@media (max-width: 1024px) {
    :root {
        --space-2xl: 5rem;
    }

    .hero {
        gap: 2rem;
    }

    .character-avatar {
        width: 280px;
        height: 280px;
    }

    .avatar-inner {
        width: 200px;
        height: 200px;
    }

    .avatar-face {
        font-size: 5.5rem;
    }

    .orbit-item {
        font-size: 2rem;
    }

    @keyframes orbit {
        from { transform: rotate(0deg) translateX(180px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
    }
}

/* Tablet */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 7rem 1.5rem 4rem;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-character {
        order: 0;
        min-height: 400px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        margin: 0 auto;
    }

    .hero-badge {
        margin: 0 auto 1.5rem;
    }

    .character-avatar {
        width: 240px;
        height: 240px;
    }

    .avatar-inner {
        width: 180px;
        height: 180px;
    }

    .avatar-face {
        font-size: 4.5rem;
    }

    .orbit-item {
        font-size: 1.8rem;
    }

    @keyframes orbit {
        from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
    }

    .scroll-indicator {
        display: none;
    }

    .games-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-content {
        padding: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-2xl: 4rem;
        --space-xl: 3rem;
        --space-lg: 2rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--color-border);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
        text-align: center;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .hero-stat {
        padding: 0.75rem 0.5rem;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }

    .story-card {
        padding: 2rem 1.5rem;
    }

    .story-card h3 {
        font-size: 1.4rem;
    }

    .story-card p {
        font-size: 1rem;
    }

    .game-card {
        max-width: 100%;
    }

    .game-visual {
        height: 180px;
    }

    .game-emoji {
        font-size: 4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .trophies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .trophy {
        padding: 1.5rem 0.5rem;
    }

    .trophy-icon {
        font-size: 2.5rem;
    }

    .trophy h4 {
        font-size: 0.9rem;
    }

    .trophy p {
        font-size: 0.75rem;
    }

    .contact-content {
        padding: 1.5rem;
    }

    .socials {
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .cursor-glow {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .trophies-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1.5rem 1rem;
    }

    .section-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem 1rem;
    }
}

/* Large desktop */
@media (min-width: 1600px) {
    :root {
        --space-2xl: 8rem;
    }

    .hero-title {
        font-size: 5rem;
    }

    .container {
        max-width: 1400px;
    }
}

/* High DPI / Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-emoji, .trophy-icon, .card-icon {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .orbit-item,
    .avatar-ring,
    .avatar-face,
    .trophy.unlocked .trophy-icon,
    .shape,
    .game-emoji {
        animation: none !important;
    }

    .stat-bar {
        width: var(--bar-width, 0%) !important;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 1.5rem 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    .character-avatar {
        width: 200px;
        height: 200px;
    }

    .avatar-inner {
        width: 150px;
        height: 150px;
    }

    .avatar-face {
        font-size: 3.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .floating-shapes,
    .bg-grid,
    .cursor-glow,
    .hero-particles,
    .scroll-indicator,
    .notification {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero, section {
        page-break-inside: avoid;
    }
}
