/* ============================================
   COLLECTIONS PAGE STYLES
   ============================================ */

/* Page Header */
.page-header {
    padding: 10rem 0 4rem;
    background-color: var(--color-gray-100);
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CATEGORY NAVIGATION
   ============================================ */
.category-nav {
    position: sticky;
    top: 70px;
    z-index: 100;
    background-color: var(--color-light);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
}

.category-tab {
    padding: 1.25rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-600);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
}

.category-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width var(--transition-base);
}

.category-tab:hover {
    color: var(--color-dark);
}

.category-tab.active {
    color: var(--color-gold);
    font-weight: 700;
}

.category-tab.active::after {
    width: 60%;
}

/* ============================================
   COLLECTIONS GRID
   ============================================ */
.collections-page {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.category-section {
    margin-bottom: 6rem;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section.hidden {
    display: none;
}

.category-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.category-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-gray-600);
}

/* Collection Gallery Grid */
.collection-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-gray-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 31, 33, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-zoom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transform: scale(0.8);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item-zoom {
    transform: scale(1);
}

/* ============================================
   GALLERY MODAL
   ============================================ */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: var(--color-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-base);
    z-index: 10;
}

.gallery-close:hover {
    opacity: 0.7;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: var(--color-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}

.gallery-prev {
    left: 2rem;
}

.gallery-next {
    right: 2rem;
}

.gallery-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: var(--color-dark);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--color-light);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.0625rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================
   ACTIVE NAV STATE
   ============================================ */
.nav-link.active {
    color: var(--color-gold) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .collection-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 8rem 0 3rem;
    }

    .category-nav {
        top: 60px;
    }

    .category-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        padding: 1rem 1.5rem;
        white-space: nowrap;
    }

    .category-title {
        font-size: 2rem;
    }

    .collection-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 1/1;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: 1rem;
    }

    .gallery-next {
        right: 1rem;
    }

    .gallery-close {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .category-tab {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .collection-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }
}
