/* Responsive CSS for Lottery 66 */

/* Mobile First Approach */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .register-content h2,
    .login-content h2 {
        font-size: 1.6rem;
    }
    
    .register-content h3,
    .login-content h3 {
        font-size: 1.4rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .step-icon {
        margin: 0 auto 0.5rem auto;
        width: 40px;
        height: 40px;
    }
    
    .step-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .phone-mockup {
        width: 150px;
        height: 250px;
        margin: 5px;
    }
    
    .phone-screen {
        padding: 15px;
    }
    
    .screen-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .form-field {
        padding: 6px 8px;
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .btn-mockup {
        padding: 8px;
        font-size: 12px;
    }
    
    .game-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .footer-links {
        font-size: 8px;
    }
}

/* Small tablets */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .register-content h2,
    .login-content h2 {
        font-size: 1.8rem;
    }
    
    .register-content h3,
    .login-content h3 {
        font-size: 1.5rem;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
    }
    
    .step-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 992px) {
    .register-section .container,
    .login-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .register-content h2,
    .login-content h2 {
        font-size: 2rem;
    }
    
    .register-content h3,
    .login-content h3 {
        font-size: 1.6rem;
    }
}

/* Desktop */
@media (min-width: 993px) {
    .register-section .container,
    .login-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .register-content h2,
    .login-content h2 {
        font-size: 2.2rem;
    }
    
    .register-content h3,
    .login-content h3 {
        font-size: 1.8rem;
    }
    
    .step-item:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0,123,255,0.2);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-container {
        max-width: 1200px;
    }
    
    .register-section .container,
    .login-section .container {
        max-width: 1200px;
    }
}

/* Print Styles */
@media print {
    .nav-actions,
    .hero-actions,
    .btn {
        display: none;
    }
    
    .hero {
        background: none;
        color: #000;
    }
    
    .step-item {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .hero-image img,
    .hero-image-login img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .step-item {
        animation: none;
        transition: none;
    }
    
    .step-item:hover {
        transform: none;
    }
    
    .hero-image img:hover,
    .hero-image-login img:hover {
        transform: none;
    }
    
    .btn {
        transition: none;
    }
}

/* Dark Mode Support - Maintaining ColorHunt Palette */
@media (prefers-color-scheme: dark) {
    :root {
        --color-cream: #2a2a2a;        /* Dark variant of cream */
        --color-beige: #3a3a3a;        /* Dark variant of beige */
        --color-blue: #4a6b8a;         /* Darker blue for better contrast */
        --color-pastel-blue: #4a5a4a;  /* Dark variant of pastel blue */
        --color-black: #ffffff;        /* White text for dark backgrounds */
        --color-white: #000000;        /* Black text for light backgrounds */
    }
    
    .register-section {
        background-color: var(--color-pastel-blue);
        color: var(--color-black);
    }
    
    .login-section {
        background-color: var(--color-cream);
        color: var(--color-black);
    }
    
    .step-item {
        background-color: var(--color-beige);
        color: var(--color-black);
    }
    
    .step-content h4 {
        color: var(--color-black);
    }
    
    .step-content p {
        color: var(--color-black);
    }
    
    .register-content h2,
    .login-content h2,
    .register-content h3,
    .login-content h3 {
        color: var(--color-black);
    }
    
    .register-content p,
    .login-content p {
        color: var(--color-black);
    }
}