/**
 * Kartika: Güçlerin Savaşı - Responsive Stil (90s Retro)
 * Mobile and tablet compatibility
 */

/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {
    
    .container {
        padding: 0 20px;
    }

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

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

}

/* ========== MOBILE LANDSCAPE & SMALL TABLET (max-width: 768px) ========== */
@media (max-width: 768px) {
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }

    .section-title::before,
    .section-title::after {
        content: "/";
        margin: 0 0.5rem;
    }

    /* Header */
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

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

    .nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .nav a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
    }

    .hero::before {
        font-size: 0.5rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Factions */
    .factions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faction-card {
        padding: 1.5rem;
    }

    /* Updates */
    .updates-grid {
        grid-template-columns: 1fr;
    }

    /* Download */
    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

/* ========== MOBILE PORTRAIT (max-width: 480px) ========== */
@media (max-width: 480px) {
    
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }

    /* Header */
    .logo h1 {
        font-size: 1.3rem;
    }

    .nav ul {
        gap: 0.3rem;
        font-size: 0.75rem;
    }

    .nav a {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 0;
        border-width: 3px;
    }

    .hero::before {
        font-size: 0.4rem;
        top: 5px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 12px 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .stat-item {
        padding: 1rem 1.5rem;
    }

    /* Features */
    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 1.5rem;
        border-width: 2px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    /* Factions */
    .faction-card {
        padding: 1.5rem;
        border-width: 3px;
    }

    .faction-header h3 {
        font-size: 1.5rem;
    }

    .faction-motto {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Updates */
    .update-card {
        padding: 1.5rem;
        border-width: 2px;
    }

    .update-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .update-title {
        font-size: 1.1rem;
    }

    /* Download */
    .download-grid {
        grid-template-columns: 1fr;
    }

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

    .download-card {
        padding: 1.5rem;
        border-width: 2px;
    }

    .web-play-cta p {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

}

/* ========== VERY SMALL MOBILE (max-width: 360px) ========== */
@media (max-width: 360px) {
    
    .hero-title {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
    }

    .nav a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .stat-item {
        padding: 0.75rem 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

}

/* ========== LANDSCAPE ORIENTATION ========== */
@media (max-height: 500px) and (orientation: landscape) {
    
    .hero {
        padding: 2rem 0;
    }

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

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .stat-item {
        padding: 0.75rem 1rem;
    }

}

/* ========== PRINT STYLES ========== */
@media print {
    
    .header,
    .footer,
    .btn,
    .hero-buttons,
    .download,
    .auth-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    .hero {
        background: white;
        color: black;
        border: 2px solid black;
        padding: 2rem 0;
    }

    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    .feature-card,
    .faction-card,
    .update-card {
        border-color: black;
    }

}

/* ========== ACCESSIBILITY ========== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #00ff00;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn,
    .feature-card,
    .faction-card,
    .update-card,
    .download-card {
        border-width: 4px;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-title {
        animation: none;
    }
    
    .logo h1 {
        animation: none;
    }
}

/* ========== TOUCH DEVICES ========== */
@media (hover: none) and (pointer: coarse) {
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav a {
        min-height: 44px;
        padding: 10px 15px;
    }

    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .faction-card:hover,
    .update-card:hover,
    .download-card:hover {
        transform: none;
    }

}
