/* Responsive Styles for Tanja's Website */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.5rem;
        --font-size-xl: 1.25rem;
        --font-size-lg: 1.125rem;
        --font-size-base: 1rem;
        --font-size-sm: 0.875rem;
        --font-size-xs: 0.75rem;
        
        --space-5xl: 4rem;
        --space-4xl: 3rem;
        --space-3xl: 2rem;
        --space-2xl: 1.5rem;
        --space-xl: 1.25rem;
        --space-lg: 1rem;
        --space-md: 0.75rem;
        --space-sm: 0.5rem;
        --space-xs: 0.25rem;
        
        --container-padding: var(--space-md);
        --nav-height: var(--nav-height-mobile);
    }
    
    /* Navigation */
    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: var(--nav-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-background);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }
    
    .nav__menu--active {
        transform: translateX(0);
    }
    
    .nav__link {
        font-size: var(--font-size-xl);
        padding: var(--space-md) var(--space-lg);
    }
    
    /* Hero */
    .hero__content {
        padding: var(--space-lg);
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero__description {
        font-size: var(--font-size-base);
    }
    
    .hero__images {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__image {
        width: 150px;
        height: 150px;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    /* About */
    .about__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-md);
    }
    
    /* Video Gallery */
    .video-gallery__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Stories */
    .stories__item {
        padding: var(--space-lg);
    }
    
    .stories__title {
        font-size: var(--font-size-xl);
    }
    
    /* Lightbox */
    .lightbox__image {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox__close,
    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-xl);
    }
    
    /* Video Modal */
    .video-modal__container {
        width: 95%;
    }
    
    /* Age Verification */
    .age-verification__content {
        padding: var(--space-xl);
        margin: var(--space-md);
    }
    
    .age-verification__title {
        font-size: var(--font-size-2xl);
    }
    
    .age-verification__text {
        font-size: var(--font-size-base);
    }
    
    .age-verification__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .age-verification__actions .btn {
        width: 100%;
    }
    
    /* Section */
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .section__title {
        font-size: var(--font-size-3xl);
    }
    
    .section__subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Sample Analysis Modal */
.sample-analysis-modal {
    width: 95%;
    max-height: 95vh;
}

.sample-analysis-modal__body {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

.sample-analysis-modal__image-container {
    max-width: 100%;
}

.sample-analysis-modal__image {
    max-height: 300px;
}

.sample-analysis-modal__header {
    padding: var(--space-lg);
}

.sample-analysis-modal__title {
    font-size: var(--font-size-xl);
}

.sample-analysis-modal__section-title {
    font-size: var(--font-size-lg);
}
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Navigation */
    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: var(--nav-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-background);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }
    
    .nav__menu--active {
        transform: translateX(0);
    }
    
    /* Hero */
    .hero__title {
        font-size: var(--font-size-4xl);
    }
    
    .hero__images {
        flex-wrap: wrap;
    }
    
    /* About */
    .about__content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Video Gallery */
    .video-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero */
    .hero__title {
        font-size: var(--font-size-5xl);
    }
    
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    /* Video Gallery */
    .video-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Print Styles */
@media print {
    .nav,
    .hero__actions,
    .lightbox,
    .video-modal,
    .age-verification {
        display: none !important;
    }
    
    body {
        background-color: var(--color-white);
        color: var(--color-black);
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .gallery__item,
    .video-gallery__item {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #6B122D;
        --color-secondary: #B8942F;
        --color-text: #000000;
        --color-background: #FFFFFF;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #1A1A1A;
        --color-background-alt: #252525;
        --color-background-dark: #2A2A2A;
        --color-text: #F5F5F5;
        --color-text-light: #D5D5D5;
        --color-text-muted: #A5A5A5;
        --color-light: #2A2A2A;
    }
    
    .nav {
        background-color: var(--color-background-alt);
    }
    
    .about {
        background-color: var(--color-background-dark);
    }
    
    .gallery {
        background-color: var(--color-background);
    }
    
    .video-gallery {
        background-color: var(--color-background-dark);
    }
    
    .stories {
        background-color: var(--color-background);
    }
    
    .stories__item {
        background-color: var(--color-background-alt);
    }
    
    .age-verification__content {
        background-color: var(--color-background-alt);
    }
    
    .lightbox__close,
    .lightbox__nav,
    .video-modal__close {
        background-color: var(--color-background-alt);
        color: var(--color-text);
    }
    
    .lightbox__close:hover,
    .lightbox__nav:hover,
    .video-modal__close:hover {
        background-color: var(--color-primary);
        color: var(--color-white);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }
    
    .hero__content {
        padding: var(--space-lg);
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__images {
        display: none;
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .gallery__item:hover .gallery__image,
    .video-gallery__item:hover .video-gallery__play-button {
        transform: none;
    }
    
    .gallery__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    }
    
    .video-gallery__play-button {
        opacity: 0.9;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav__link::after {
        display: none;
    }
}
