/* ========================================
   Responsive Styles
======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .gallery-content {
        grid-template-columns: 1fr;
    }
    
    .phases-timeline {
        padding-left: var(--spacing-md);
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .phase-marker {
        left: 0;
    }
    
    .phase-item {
        padding-left: 60px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--spacing-xl);
        gap: var(--spacing-md);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        padding: var(--spacing-xxl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-stats {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Section Headers Mobile */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Overview Mobile */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .story-number {
        font-size: 2rem;
    }
    
    /* Phases Mobile */
    .phase-header {
        flex-wrap: wrap;
    }
    
    .phase-icon {
        font-size: 1.5rem;
    }
    
    .phase-title {
        font-size: 1.125rem;
        flex: 100%;
        margin-top: var(--spacing-xs);
    }
    
    .phase-period {
        margin-top: var(--spacing-xs);
    }
    
    /* Results Mobile */
    .book-keywords {
        gap: var(--spacing-sm);
    }
    
    .keyword {
        font-size: 0.875rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    /* Manuscript Access */
    .access-content {
        grid-template-columns: 1fr;
    }
    
    .access-qr {
        margin-top: var(--spacing-lg);
    }
    
    .reader-features {
        grid-template-columns: 1fr;
    }
    
    .structure-flow {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .structure-arrow {
        transform: rotate(90deg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .testimonial-quote {
        font-size: 1.25rem;
    }
    
    /* Gallery Mobile */
    .gallery-thumbs {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    /* Future Mobile */
    .future-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Utilities Mobile */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
}

/* Small Mobile (< 375px) */
@media (max-width: 375px) {
    :root {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-stats {
        flex-direction: row;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: var(--spacing-md);
    }
}

/* Print Styles */
@media print {
    .navigation,
    .hero-cta,
    .nav-toggle,
    #qrcode {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    .hero {
        min-height: auto;
        background: none;
        color: black;
    }
    
    .hero-background {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}