/* ============================================
   COLLECTIONS GALLERY PAGE - CSS
   Boris Molinier Photographie
   "All Collections" Dedicated Page
   ============================================ */

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
    /* Colors - Dark Theme */
    --color-bg-darker: #000000;
    --color-bg-dark: #0a0a0a;
    --color-bg-primary: #0d0d0d;
    --color-bg-secondary: #1a1a1a;

    /* Text on Dark Backgrounds */
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #c4c4c4;
    --color-text-muted: #8a8a8a;

    /* Accents */
    --color-accent-gold: #d4af37;
    --color-accent-bronze: #cd7f32;
    --color-border-dark: #2a2a2a;

    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Animations */
    --duration-fast: 300ms;
    --duration-normal: 500ms;
    --duration-slow: 800ms;
    --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SIMPLE NAVIGATION HEADER
   ============================================ */
.collections-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-md) var(--spacing-lg);
}

.collections-nav__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collections-nav__back {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-luxury);
}

.collections-nav__back:hover {
    color: var(--color-accent-gold);
}

.collections-nav__back svg {
    transition: transform var(--duration-fast) var(--ease-luxury);
}

.collections-nav__back:hover svg {
    transform: translateX(-4px);
}

.collections-nav__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.collections-nav__logo-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.collections-nav__logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-gold);
}

.collections-nav__contact {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.collections-nav__contact:hover {
    color: var(--color-accent-gold);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .collections-nav {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .collections-nav__logo-name {
        font-size: 1rem;
    }

    .collections-nav__back span,
    .collections-nav__logo-tagline {
        display: none;
    }

    .collections-nav__back {
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .collections-nav__contact {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* ============================================
   SECTION - COLLECTIONS GALLERY
   ============================================ */
.collections-gallery {
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

@media (max-width: 968px) {
    .collections-gallery {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
}

/* ============================================
   HERO HEADER
   ============================================ */
.collections-gallery__hero {
    max-width: 1400px;
    margin: 0 auto var(--spacing-3xl);
    text-align: center;
    animation: fadeInUp 800ms var(--ease-luxury) forwards;
}

.collections-gallery__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.collections-gallery__eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-gold);
    margin-bottom: var(--spacing-sm);
}

.collections-gallery__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.collections-gallery__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 65ch;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .collections-gallery__hero {
        margin-bottom: var(--spacing-2xl);
    }

    .collections-gallery__subtitle br {
        display: none;
    }
}

/* ============================================
   FILTERS (Optional - Currently Commented Out)
   ============================================ */
.collections-gallery__filters {
    max-width: 1400px;
    margin: 0 auto var(--spacing-xl);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    animation: fadeIn 800ms var(--ease-luxury) 0.2s forwards;
    opacity: 0;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.filter-btn:hover {
    color: var(--color-accent-gold);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.filter-btn--active {
    color: var(--color-bg-primary);
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
}

/* ============================================
   COLLECTIONS GRID
   ============================================ */
.collections-gallery__grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    animation: fadeInUp 800ms var(--ease-luxury) 0.3s forwards;
    opacity: 0;
}

@media (max-width: 968px) {
    .collections-gallery__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ============================================
   COLLECTION CARDS (Reuse existing styles)
   ============================================ */
.collection-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-luxury),
                box-shadow var(--duration-normal) var(--ease-luxury);
}

/* Card Sizes - All Equal */
.collection-card--large,
.collection-card--medium {
    min-height: 550px;
}

/* Panorama Card - Full Width Hero */
.collection-card--panorama {
    grid-column: 1 / -1; /* Span both columns */
    min-height: 400px; /* Shorter for panoramic aspect ratio */
}

@media (max-width: 968px) {
    .collection-card--large,
    .collection-card--medium {
        min-height: 500px;
    }

    .collection-card--panorama {
        min-height: 450px;
    }
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Image Wrapper */
.collection-card__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.collection-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--duration-slow) var(--ease-luxury),
                opacity var(--duration-normal) var(--ease-luxury);
}

.collection-card__image--1 {
    z-index: 1;
}

.collection-card__image--2 {
    z-index: 2;
    opacity: 0;
}

.collection-card:hover .collection-card__image--1 {
    transform: scale(1.1);
}

.collection-card:hover .collection-card__image--2 {
    opacity: 1;
    transform: scale(1.05);
}

/* Overlay */
.collection-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.4) 0%,
        rgba(13, 13, 13, 0.7) 50%,
        rgba(13, 13, 13, 0.95) 100%
    );
    z-index: 3;
    transition: background var(--duration-normal) var(--ease-luxury);
}

.collection-card:hover .collection-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.3) 0%,
        rgba(13, 13, 13, 0.6) 50%,
        rgba(13, 13, 13, 0.9) 100%
    );
}

/* Content */
.collection-card__content {
    position: relative;
    z-index: 4;
    height: 100%;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .collection-card__content {
        padding: var(--spacing-lg);
    }
}

/* Badge */
.collection-card__badge {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.collection-card__badge-icon {
    color: var(--color-accent-gold);
}

/* Hero Badge for Panorama */
.collection-card__badge--hero {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

.collection-card__badge--hero .collection-card__badge-icon {
    width: 14px;
    height: 14px;
}

/* Title */
.collection-card__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    transition: color var(--duration-fast) var(--ease-luxury);
}

.collection-card:hover .collection-card__title {
    color: var(--color-accent-gold);
}

/* Description */
.collection-card__description {
    font-family: var(--font-sans);
    font-size: clamp(0.9375rem, 2vw, 1rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 45ch;
}

/* Stats */
.collection-card__stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.collection-card__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.collection-card__stat-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.collection-card__stat-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* CTA Button */
.collection-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    align-self: flex-start;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-bg-primary);
    background: var(--color-accent-gold);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.collection-card__cta:hover {
    background: var(--color-accent-bronze);
    transform: translateX(4px);
}

.collection-card__cta-icon {
    transition: transform var(--duration-fast) var(--ease-luxury);
}

.collection-card__cta:hover .collection-card__cta-icon {
    transform: translateX(4px);
}

/* Gallery Hover Effect - Top Right Corner */
.collection-card__gallery {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 5;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-luxury);
    pointer-events: none;
}

.collection-card:hover .collection-card__gallery {
    opacity: 1;
    transform: translateY(0);
}

.collection-card__gallery-item {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    filter: grayscale(0.2);
    transition: all var(--duration-fast) var(--ease-luxury);
}

.collection-card__gallery-item:hover {
    filter: grayscale(0);
    transform: scale(1.1);
    border-color: var(--color-accent-gold);
}

/* Panorama Gallery - 5 Thumbnails */
.collection-card__gallery--panorama {
    gap: var(--spacing-sm);
}

.collection-card__gallery--panorama .collection-card__gallery-item {
    width: 80px;
    height: 50px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .collection-card__gallery {
        top: var(--spacing-md);
        right: var(--spacing-md);
    }

    .collection-card__gallery-item {
        width: 50px;
        height: 50px;
    }

    .collection-card__gallery--panorama .collection-card__gallery-item {
        width: 60px;
        height: 40px;
    }
}

/* ============================================
   FOOTER CTA
   ============================================ */
.collections-gallery__footer {
    max-width: 800px;
    margin: var(--spacing-3xl) auto 0;
    text-align: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    animation: fadeInUp 800ms var(--ease-luxury) 0.5s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .collections-gallery__footer {
        margin-top: var(--spacing-2xl);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

.collections-gallery__footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.collections-gallery__footer-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.collections-gallery__footer-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 50ch;
}

.collections-gallery__footer-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-bg-primary);
    background: var(--color-accent-gold);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-luxury);
    margin-top: var(--spacing-sm);
}

.collections-gallery__footer-cta:hover {
    background: var(--color-accent-bronze);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.collections-gallery__footer-cta svg {
    transition: transform var(--duration-fast) var(--ease-luxury);
}

.collections-gallery__footer-cta:hover svg {
    transform: translateX(4px);
}

/* ============================================
   SIMPLE FOOTER
   ============================================ */
.collections-footer {
    background: var(--color-bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.collections-footer__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.collections-footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.collections-footer__copyright {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.collections-footer__links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.collections-footer__link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-luxury);
}

.collections-footer__link:hover {
    color: var(--color-accent-gold);
}

.collections-footer__separator {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.collections-footer__social {
    display: flex;
    gap: var(--spacing-md);
}

.collections-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.collections-footer__social-link:hover {
    color: var(--color-accent-gold);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .collections-footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .collections-footer__container {
        flex-direction: column;
        text-align: center;
    }

    .collections-footer__content {
        align-items: center;
    }

    .collections-footer__links {
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.collection-card:focus-visible,
.collection-card__cta:focus-visible,
.collections-gallery__footer-cta:focus-visible {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .collections-gallery {
        background: white;
        color: black;
    }

    .collection-card__overlay,
    .collection-card__gallery {
        display: none;
    }
}
