/**
 * Responsive design styles for mobile, tablet, and desktop breakpoints
 * Ensures optimal viewing experience across all device sizes
 */

/* Mobile First Approach - Base styles are for mobile */

/* Sections */
section {
    padding: 1rem 0;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .auth-page {
        padding: 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 1rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* Navigation */
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    /* Hero */
    .hero-title {
        font-size: 7rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Interactive Reading */
    .interactive-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 4rem;
    }
    
    .cta-subtitle {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-links {
        gap: 2rem;
    }
    
    /* Sections */
    section {
        padding: 1rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 4rem 2rem;
    }
    
    /* Sections */
    section {
        padding: 1rem 0;
    }
    
    /* Interactive Reading */
    .interactive-reading {
        padding: 1rem 0;
    }
    
    /* CTA */
    .cta {
        padding: 1rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    /* Typography scaling */
    .section-title {
        font-size: 3.5rem;
    }
    
    .interactive-title {
        font-size: 3.5rem;
    }
    
    .cta-title {
        font-size: 5rem;
    }
    
    /* Sections */
    section {
        padding: 1rem 0;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    /* Navigation mobile menu */
    .mobile-nav.active {
        display: flex;
    }
    
    /* Hero adjustments */
    .hero {
        padding-top: 5rem;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Interactive reading */
    .interactive-title {
        font-size: 2.5rem;
    }
    
    .interactive-description {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    /* Pricing */
    .price {
        font-size: 4rem;
    }
    
    .pricing-title {
        font-size: 1.5rem;
    }
    
    /* Auth pages */
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Sections */
    section {
        padding: 1rem 0;
    }
}

/* Very small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1rem;
    }
    
    /* Reduce spacing on very small screens */
    section {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .interactive-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .price {
        font-size: 3rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding-top: 4rem;
        min-height: auto;
    }
    
    .hero-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .auth-page {
        padding-top: 4rem;
        min-height: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .nav-border,
    .auth-border,
    .interactive-border,
    .pricing-border {
        transform: translateZ(0);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-pulse {
        animation: none;
    }
    
    .interactive-image img:hover {
        transform: none;
    }
    
    .cta-button:hover,
    .nav-button:hover,
    .auth-button:hover,
    .pricing-button:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .nav-container,
    .mobile-nav,
    .cta,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-bg,
    .auth-bg,
    .cta-bg {
        display: none;
    }
}