/* ==========================================
   YOGA MASTERY GUIDE - RESPONSIVE STYLES
   ========================================== */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .feature-card,
    .article-card {
        padding: 2rem;
    }
}

/* Mobile Landscape Styles (600px - 768px) */
@media screen and (max-width: 768px) {
    /* Navigation Mobile Styles */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--white);
        box-shadow: 0 2px 20px var(--shadow-light);
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    .hamburger {
        width: 22px;
        height: 2px;
        background: var(--text-color);
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 1px;
    }
    
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: var(--transition);
        box-shadow: 0 4px 20px var(--shadow-light);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .cta-nav {
        display: inline-block;
        width: auto;
        margin: 0 auto;
        padding: 1rem 2rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 90px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Features Section Mobile */
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    /* Featured Articles Mobile */
    .featured-articles {
        padding: 60px 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .article-card {
        margin-bottom: 1rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    /* Newsletter Mobile */
    .newsletter {
        padding: 60px 0;
    }
    
    .newsletter-title {
        font-size: 1.75rem;
    }
    
    .newsletter-subtitle {
        font-size: 1rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-title {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* Small Mobile Styles (320px - 600px) */
@media screen and (max-width: 600px) {
    /* Global Mobile Adjustments */
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero Adjustments */
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero-content {
        padding: 0 0.75rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-image img {
        height: 200px;
    }
    
    /* Button Adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Feature Card Adjustments */
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    /* Article Card Adjustments */
    .article-content {
        padding: 1.25rem;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
    }
    
    /* Newsletter Mobile */
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-subtitle {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-brand .brand-text {
        font-size: 1.25rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Large Desktop Styles (1400px+) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Ultra-Wide Screens (1600px+) */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .nav-container {
        max-width: 1600px;
    }
    
    .hero-content {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Orientation Adjustments */
@media screen and (orientation: landscape) and (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-image img {
        height: 180px;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
}

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

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-behavior {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #e0e0e0;
        --text-light: #b0b0b0;
        --white: #2a2a2a;
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.5);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .newsletter,
    .footer {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
    }
    
    .btn {
        background: none !important;
        border: 2px solid black !important;
        color: black !important;
    }
    
    .feature-card,
    .article-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}