/* ==============================================================================
   Magicallife Visuals - Master Design System & Pure CSS Architecture
   Zero dependencies. Lightweight, blazing fast, fully responsive.
   ============================================================================== */

/* --- CSS Reset & Variables --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Theme Colors */
    --bg-page: #fbfbf9;
    --bg-surface: #ffffff;
    --bg-subtle: #f5f4f0;
    --bg-card-hover: #fcfbfa;
    --bg-dark: #0f172a;
    --bg-dark-surface: #172033;
    --bg-dark-subtle: #222f46;

    --text-main: #18181b;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-inverse: #f8fafc;

    --border-color: #e5e7eb;
    --border-subtle: #f3f4f6;
    --border-dark: #334155;

    /* Accent Color (Refined Amber / Copper Gold) */
    --accent: #d97706;
    --accent-hover: #b45309;
    --accent-dark: #92400e;
    --accent-light: #fef3c7;
    --accent-subtle: #fffbeb;
    --accent-text: #b45309;

    /* Stock Branding */
    --color-shutterstock: #e11d48;
    --color-adobestock: #0284c7;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 50px -10px rgba(0, 0, 0, 0.16);

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img, svg, picture, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* --- Container & Layout Helpers --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
    color: var(--text-main);
    line-height: 1.25;
    font-weight: 700;
}

.text-gradient {
    color: var(--accent);
}

/* --- Top Announcement Bar --- */
.top-bar {
    background-color: var(--bg-dark);
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.top-bar-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background-color: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.top-bar-links {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
}

.top-bar-links a:hover {
    color: var(--accent);
}

/* --- Main Header & Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

/* Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
    transition: transform var(--transition-base);
}

.brand-logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.logo-title span {
    color: var(--accent);
}

.logo-subtitle {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Desktop Header Search */
.header-search {
    flex: 1;
    max-width: 320px;
    position: relative;
    display: none;
}

@media (min-width: 900px) {
    .header-search {
        display: block;
    }
}

.header-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.25rem;
    background-color: var(--bg-subtle);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.header-search input:focus {
    background-color: #ffffff;
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.header-search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    width: 15px;
    height: 15px;
}

/* Navigation Links */
.nav-menu {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-dark);
    background-color: var(--accent-subtle);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 260px;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding: 0.4rem 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-main);
    border-radius: var(--radius-xs);
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-subtle);
    color: var(--accent-dark);
}

.dropdown-count {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background-color: var(--bg-subtle);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-xs);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .menu-toggle-btn {
        display: none;
    }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    display: none;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.25rem 1.75rem;
}

.mobile-drawer.open {
    display: block;
}

.mobile-search-form {
    position: relative;
    margin-bottom: 1rem;
}

.mobile-search-form input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.mobile-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: var(--bg-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--accent-subtle);
    color: var(--accent-dark);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 0 6.5rem;
    }
}

.hero-glow-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background: radial-gradient(circle at 20% 30%, var(--accent) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, #9f1239 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fcd34d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto 2.25rem;
    font-weight: 400;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Hero Search Box */
.hero-search-box {
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.hero-search-form {
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-full);
}

.hero-search-form input {
    width: 100%;
    padding: 1.1rem 7.5rem 1.1rem 3.25rem;
    background-color: #ffffff;
    color: var(--text-main);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    outline: none;
}

.hero-search-form input:focus {
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.35);
}

.hero-search-input-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.hero-search-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hero-search-btn:hover {
    background-color: var(--accent-hover);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.hero-tag-link {
    color: #fcd34d;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.hero-tag-link:hover {
    color: #ffffff;
}

/* Hero CTA Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-align: center;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-dark {
    background-color: var(--bg-dark);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-subtle);
    border-color: var(--text-secondary);
}

.btn-stock-shutter {
    background-color: var(--color-shutterstock);
    color: #ffffff;
}

.btn-stock-shutter:hover {
    background-color: #be123c;
    color: #ffffff;
}

.btn-stock-adobe {
    background-color: var(--color-adobestock);
    color: #ffffff;
}

.btn-stock-adobe:hover {
    background-color: #0369a1;
    color: #ffffff;
}

.btn-sm {
    padding: 0.45rem 0.875rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* --- Section Layouts --- */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section-dark {
    background-color: var(--bg-dark);
    color: #ffffff;
}

.section-dark h2, .section-dark h3 {
    color: #ffffff;
}

.section-subtle {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.25rem;
    display: block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-top: 0.25rem;
}

.section-header-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.section-header-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- Visuals Grid & Cards (Desktop 4 cols, Tablet 2-3, Mobile 1-2) --- */
.visuals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .visuals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .visuals-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1100px) {
    .visuals-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Visual Card */
.visual-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.visual-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-dark);
    overflow: hidden;
}

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

.visual-card:hover .card-img {
    transform: scale(1.04);
}

.card-badge-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.55rem;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-xs);
    pointer-events: none;
}

.card-preview-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.visual-card:hover .card-preview-btn {
    opacity: 1;
    transform: scale(1);
}

.card-preview-btn:hover {
    background-color: #ffffff;
    color: var(--accent);
}

.card-preview-btn svg {
    width: 16px;
    height: 16px;
}

.card-body {
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visual-card:hover .card-title a {
    color: var(--accent);
}

.card-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-footer-meta {
    font-family: var(--font-mono);
    text-transform: capitalize;
}

.card-footer-action {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-footer-action:hover {
    color: var(--accent-hover);
}

/* --- Collections Grid & Cards --- */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.collection-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: #d1d5db;
}

.collection-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-dark);
    overflow: hidden;
}

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

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

.collection-count-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.3rem 0.75rem;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fcd34d;
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.collection-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collection-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

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

.collection-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.collection-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.collection-footer-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.collection-card:hover .collection-footer-link svg {
    transform: translateX(4px);
}

/* --- Filter Toolbars & Catalog Controls --- */
.filter-toolbar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.filter-pill {
    display: inline-block;
    padding: 0.45rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background-color: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.filter-pill:hover {
    background-color: #e5e7eb;
    color: var(--text-main);
}

.filter-pill.active {
    background-color: var(--bg-dark);
    color: #ffffff;
}

.filter-select-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.form-select {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 14px;
}

.form-select:focus {
    border-color: var(--accent);
    background-color: #ffffff;
}

/* --- Image Detail Page --- */
.breadcrumb-bar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list a:hover {
    color: var(--accent);
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 600;
}

.image-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

@media (min-width: 1024px) {
    .image-detail-grid {
        grid-template-columns: 7fr 5fr;
        gap: 3rem;
    }
}

.detail-viewport {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
    .detail-viewport {
        padding: 2.5rem;
    }
}

.detail-main-img {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.detail-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.detail-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.stock-cta-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.meta-table {
    width: 100%;
    font-size: 0.8125rem;
    border-collapse: collapse;
}

.meta-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.meta-table tr:last-child {
    border-bottom: none;
}

.meta-table td {
    padding: 0.65rem 0;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 500;
    width: 35%;
}

.meta-value {
    color: var(--text-main);
    font-weight: 600;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.keyword-chip {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.keyword-chip:hover {
    background-color: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* --- Lightbox Modal --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-dialog {
    position: relative;
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .lightbox-dialog {
        flex-direction: row;
    }
}

.lightbox-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-fast);
}

.lightbox-close-btn:hover {
    background-color: var(--accent);
}

.lightbox-img-pane {
    flex: 1;
    background-color: #050b14;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 280px;
}

.lightbox-img-pane img {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-info-pane {
    width: 100%;
    background-color: var(--bg-dark-surface);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f1f5f9;
    border-top: 1px solid var(--border-dark);
}

@media (min-width: 768px) {
    .lightbox-info-pane {
        width: 320px;
        border-top: none;
        border-left: 1px solid var(--border-dark);
    }
}

/* --- Multi-Column Site Footer --- */
.site-footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    font-size: 0.8125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 5rem;
}

.footer-top {
    padding: 4.5rem 0 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.25fr;
        gap: 3.5rem;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand .logo-title {
    color: #ffffff;
}

.footer-brand p {
    line-height: 1.6;
    font-size: 0.8125rem;
    color: #94a3b8;
    max-width: 360px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-legal-links {
    display: flex;
    gap: 1.25rem;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 3rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background-color: var(--bg-subtle);
    border-color: var(--text-secondary);
}

.page-link.active {
    background-color: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
}

/* --- Forms & Feedback --- */
.form-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
