/* ===================================
   Immaculate Vibes — Final Merged Build
   Combines: Featured + Collections + View All
   =================================== */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141c;
    --bg-card: #1a1a24;
    --text-primary: #f5f7ff;
    --text-secondary: #9da3bb;
    --text-muted: #6b7086;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 8px 32px rgba(139, 92, 246, 0.2);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.nav.scrolled {
    padding: 0;
}

.nav.scrolled .nav-container {
    padding: 0.5rem 2rem;
}

.nav.scrolled .logo {
    font-size: 1.125rem;
}

.nav.scrolled .logo-icon {
    font-size: 1.25rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

.nav-backdrop.active {
    display: block;
}

@media (max-width: 480px) {
    .nav-toggle {
        display: block;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-icon {
        font-size: 1.25rem;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        border-left: 1px solid var(--border);
        transition: right var(--transition-base);
        z-index: 999;
    }

    .nav-right.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
    }
    
    .shuffle-btn {
        margin-top: 2rem;
    }
}



.shuffle-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.shuffle-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: rotate(15deg);
}

/* === Hero (Compact) === */
.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 3rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accent-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

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

.hero-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 1s ease 0.7s forwards;
}

.meta-divider {
    color: var(--border);
}

/* === View Mode Bar === */
.view-mode-bar {
    position: sticky;
    top: 73px;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.view-mode-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.view-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.view-mode-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-base);
}

.view-mode-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.view-mode-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.view-actions {
    display: flex;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    width: 200px;
    transition: all var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    width: 250px;
}

.sort-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
}

/* === View Sections === */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
    min-height: 60vh;
}

.main-content {
    padding: 2rem 0 4rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* === Featured Card === */
.featured-section {
    margin-bottom: 4rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.featured-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* === Masonry Grid === */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    grid-auto-rows: 200px;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.masonry-item:hover {
    transform: translateY(-4px);
}

.masonry-item.featured-size {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item.tall-size {
    grid-row: span 2;
}

.masonry-item.wide-size {
    grid-column: span 2;
}

.masonry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.masonry-overlay.always-visible {
    opacity: 1;
}

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

.masonry-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.masonry-collection {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === Collections === */
.collection-block {
    margin-bottom: 4rem;
}

.collection-header {
    margin-bottom: 2rem;
}

.collection-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.collection-intro {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 800px;
}

.collection-pills {
    display: flex;
    gap: 0.5rem;
}

.pill {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
}

.collection-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.collection-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    transition: transform var(--transition-base);
}

.collection-item:hover {
    transform: translateY(-4px);
}

.collection-item img {
    width: 100%;
    height: auto;
    display: block;
}

.collection-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.collection-item-overlay.always-visible {
    opacity: 1;
}

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

.collection-item-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.collection-item-overlay p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === View All Gallery === */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.filter-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.all-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    opacity: 1;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item-inner {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-image[data-src] {
    opacity: 0;
}

.gallery-image.loaded {
    opacity: 1;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-overlay.always-visible {
    opacity: 1;
}

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

.artwork-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.artwork-collection {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* === About Page === */
.about-page-content {
    padding: 2rem 0 4rem;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.artist-statement-section {
    margin-bottom: 4rem;
}

.artist-statement {
    text-align: center;
}

.artist-statement h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.artist-statement p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Journey Timeline */
.journey-section {
    margin-bottom: 4rem;
}

.journey-timeline {
    max-width: 800px;
    margin: 2rem auto 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -3rem;
    width: 2px;
    background: var(--border);
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technical Section */
.technical-section {
    margin-bottom: 4rem;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-base);
}

.tech-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tech-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Team Section */
.team-section {
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-base);
}

.team-member:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.member-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Meta Section */
.meta-section {
    margin-bottom: 4rem;
}

.about-meta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.meta-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-base);
}

.meta-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.meta-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.meta-card strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.meta-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* === Footer === */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 100%);
    border-top: 2px solid var(--border);
    padding: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-about p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-style: italic;
    margin-top: 1.5rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-credit {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-credit a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-credit a:hover {
    color: var(--accent);
}

.footer-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    margin-top: 2rem;
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === Collections Landing Page === */
.collections-page {
    padding: 3rem 0 4rem;
}

.collection-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
}

.collection-card-large {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.collection-card-large:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.collection-card-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 280px;
    overflow: hidden;
}

.collection-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.collection-card-large:hover .collection-card-preview img {
    transform: scale(1.05);
}

.collection-card-info {
    padding: 2rem;
}

.collection-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.collection-card-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.collection-card-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Individual Collection Page === */
.collection-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.collection-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    transition: color var(--transition-base);
}

.back-link:hover {
    color: var(--accent);
}

.collection-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.collection-hero-date {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.collection-hero-meta {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.collection-hero-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.collection-pill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.collection-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.collection-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.collection-info-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.info-card-compact {
    background: rgba(139, 92, 246, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.info-card-compact h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-card-compact p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.8125rem;
}

.info-card-compact strong {
    color: var(--text-primary);
    font-weight: 600;
}

.collection-gallery-page {
    padding: 3rem 0 4rem;
}

.collection-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.collection-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.collection-gallery-item.hidden {
    display: none;
}

.collection-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.collection-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.collection-gallery-image[data-src] {
    opacity: 0;
}

.collection-gallery-image.loaded {
    opacity: 1;
}

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

.collection-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.collection-gallery-overlay.always-visible {
    opacity: 1;
}

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

.collection-gallery-overlay h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.collection-gallery-overlay p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === Responsive === */
@media (max-width: 968px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .view-mode-container {
        flex-direction: column;
        gap: 1rem;
    }

    .all-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 6rem 1rem 2rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

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

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

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

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

    .collection-hero {
        padding: 6rem 1rem 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem 2rem;
    }

    .footer-section {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-section h4 {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .footer-section li {
        margin-bottom: 0.875rem;
    }

    .footer-section a {
        font-size: 1rem;
    }

    .footer-about p {
        font-size: 1rem;
    }

    .footer-tagline {
        font-size: 1.0625rem;
        margin-top: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 0.75rem;
    }

    .footer-credit,
    .footer-meta {
        font-size: 0.875rem;
    }
}
