/* Comprehensive Responsive CSS Fixes for duwingame.cc */

/* ===== MOBILE FIRST APPROACH ===== */

/* Base responsive breakpoints */
:root {
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --large-desktop: 1200px;
}

/* ===== GLOBAL RESPONSIVE FIXES ===== */

/* Container responsive behavior */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* ===== HEADER & NAVIGATION RESPONSIVE ===== */

/* Mobile navigation */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-blue-magenta);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(97, 0, 148, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .logo-container h2 {
        font-size: 1.5rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo-container h2 {
        font-size: 1.25rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ===== SECTION RESPONSIVE FIXES ===== */

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-padding-lg {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Grid layouts */
    .intro-grid,
    .features-grid,
    .bonuses-grid,
    .games-grid,
    .tips-grid,
    .growth-factors,
    .payment-methods,
    .safety-features,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .feature-card,
    .bonus-card,
    .game-category,
    .tip-item,
    .factor,
    .payment-category,
    .safety-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 2rem 0;
    }
    
    .section-padding-lg {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-card,
    .bonus-card,
    .game-category,
    .tip-item,
    .factor,
    .payment-category,
    .safety-item {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* ===== REGISTRATION STEPS RESPONSIVE ===== */

@media (max-width: 768px) {
    .registration-steps {
        padding: 3rem 0;
    }
    
    .registration-steps h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        padding: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step h4 {
        font-size: 1.25rem;
    }
    
    .step p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .registration-steps {
        padding: 2rem 0;
    }
    
    .registration-steps h3 {
        font-size: 1.75rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .step h4 {
        font-size: 1.1rem;
    }
    
    .step p {
        font-size: 0.9rem;
    }
}

/* ===== GAMES SLIDER RESPONSIVE ===== */

@media (max-width: 768px) {
    .games-slider-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .emoji {
        font-size: 1.5rem;
    }
    
    .language-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .mobile-games-slider {
        padding: 0 2rem;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
    }
    
    .slider-nav.prev {
        left: -15px;
    }
    
    .slider-nav.next {
        right: -15px;
    }
    
    .mobile-slide {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .mobile-screen {
        width: 180px;
        height: 360px;
    }
    
    .game-thumbnails {
        gap: 1rem;
    }
    
    .thumbnail-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .games-slider-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .emoji {
        font-size: 1.25rem;
    }
    
    .language-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }
    
    .mobile-games-slider {
        padding: 0 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: -10px;
    }
    
    .slider-nav.next {
        right: -10px;
    }
    
    .mobile-slide {
        flex: 0 0 100%;
    }
    
    .mobile-screen {
        width: 160px;
        height: 320px;
    }
    
    .game-thumbnails {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .thumbnail-icon {
        width: 35px;
        height: 35px;
    }
    
    .thumbnail-name {
        font-size: 0.6rem;
    }
    
    .slider-slogan p {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ===== LOGIN & REGISTER SECTIONS RESPONSIVE ===== */

@media (max-width: 768px) {
    .login-section,
    .register-section {
        padding: 3rem 0;
    }
    
    .login-section h2,
    .register-section h2 {
        font-size: 2.5rem;
    }
    
    .login-section p,
    .register-section p {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .login-content,
    .register-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .login-info,
    .register-steps {
        padding: 2rem;
    }
    
    .login-info h3,
    .register-steps h3 {
        font-size: 1.6rem;
    }
    
    .btn-login-large,
    .btn-register-large {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
    
    .register-image {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .login-section,
    .register-section {
        padding: 2rem 0;
    }
    
    .login-section h2,
    .register-section h2 {
        font-size: 2rem;
    }
    
    .login-section p,
    .register-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .login-info,
    .register-steps {
        padding: 1.5rem;
    }
    
    .login-info h3,
    .register-steps h3 {
        font-size: 1.4rem;
    }
    
    .login-info li,
    .register-steps li {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .btn-login-large,
    .btn-register-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .login-note,
    .register-note {
        font-size: 0.9rem;
    }
}

/* ===== FOOTER RESPONSIVE ===== */

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== CONTACT SECTION RESPONSIVE ===== */

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        padding: 1.25rem;
    }
    
    .contact-method h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-section h2 {
        font-size: 1.75rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .contact-method h4 {
        font-size: 1rem;
    }
    
    .contact-method p {
        font-size: 0.9rem;
    }
}

/* ===== BACK TO TOP BUTTON RESPONSIVE ===== */

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE ===== */

/* Hide elements on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide elements on desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Text alignment responsive */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
    
    .text-left-mobile {
        text-align: left !important;
    }
}

/* Spacing responsive */
@media (max-width: 768px) {
    .mt-mobile-0 { margin-top: 0 !important; }
    .mt-mobile-1 { margin-top: 0.5rem !important; }
    .mt-mobile-2 { margin-top: 1rem !important; }
    .mt-mobile-3 { margin-top: 1.5rem !important; }
    
    .mb-mobile-0 { margin-bottom: 0 !important; }
    .mb-mobile-1 { margin-bottom: 0.5rem !important; }
    .mb-mobile-2 { margin-bottom: 1rem !important; }
    .mb-mobile-3 { margin-bottom: 1.5rem !important; }
    
    .pt-mobile-0 { padding-top: 0 !important; }
    .pt-mobile-1 { padding-top: 0.5rem !important; }
    .pt-mobile-2 { padding-top: 1rem !important; }
    .pt-mobile-3 { padding-top: 1.5rem !important; }
    
    .pb-mobile-0 { padding-bottom: 0 !important; }
    .pb-mobile-1 { padding-bottom: 0.5rem !important; }
    .pb-mobile-2 { padding-bottom: 1rem !important; }
    .pb-mobile-3 { padding-bottom: 1.5rem !important; }
}

/* ===== FONT SIZE RESPONSIVE ===== */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
    h5 { font-size: 1.1rem !important; }
    h6 { font-size: 1rem !important; }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
}

/* ===== BUTTON RESPONSIVE ===== */

@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch target size */
    }
    
    .btn-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .btn-icon {
        font-size: 0.9rem;
    }
}

/* ===== FORM ELEMENTS RESPONSIVE ===== */

@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px;
        min-height: 40px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Ensure proper focus indicators on mobile */
@media (max-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid var(--vivid-purple);
        outline-offset: 2px;
    }
}

/* Improve touch targets */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .slider-nav,
    .thumbnail-item {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
    .feature-card:hover,
    .bonus-card:hover,
    .game-category:hover,
    .tip-item:hover,
    .factor:hover,
    .payment-category:hover,
    .safety-item:hover {
        transform: none;
    }
    
    .step:hover,
    .highlight-card:hover {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .header,
    .footer,
    .btn,
    .back-to-top,
    .hamburger,
    .slider-nav {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    .main-content {
        margin-top: 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .section-padding {
        padding: 1rem 0 !important;
    }
    
    .feature-card,
    .bonus-card,
    .game-category,
    .tip-item,
    .factor,
    .payment-category,
    .safety-item {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}
