/* ==========================================================================
   Frontend Components — Gallery Components
   Layer 4 — requires tokens.css, base.css, layout.css
   /css/frontend/components.css

   Component-specific styles: info panels, CTAs, thumbnails,
   photo viewer, and other interactive elements.
   ========================================================================== */

/* ==========================================================================
   Static Pages — Privacy Policy, About

   2026-04-03: added for /privacy and /about pages.
   ========================================================================== */

.page-content {
    padding: var(--spacing-8) var(--spacing-6);
    max-width: var(--content-max-width-prose);
}

.page-content__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-2);
    line-height: var(--leading-tight);
}

.page-content__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0 0 var(--spacing-8);
}

.page-content__section {
    margin-bottom: var(--spacing-8);
}

.page-content__section h2 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-3);
    padding-bottom: var(--spacing-2);
    /* 2026-04-03: removed border-bottom — spacing alone provides enough separation */
}

.page-content__section p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-loose);
    margin: 0 0 var(--spacing-3);
}

.page-content__section p:last-child {
    margin-bottom: 0;
}

.page-content__section ul {
    margin: 0 0 var(--spacing-3) var(--spacing-5);
    padding: 0;
}

.page-content__section li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-loose);
    margin-bottom: var(--spacing-1);
}

.page-content__section strong {
    color: var(--color-text-primary);
    font-weight: var(--font-semibold);
}

.page-content__section code {
    font-family: monospace;
    font-size: 0.8em;
    color: var(--color-text-accent);
    background: var(--color-accent-subtle);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
}

.page-content__link {
    color: var(--color-text-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

.page-content__link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Age Gate — full-viewport overlay shown on first visit

   2026-04-03: added — legal requirement for adult content sites.
   Cookie-driven: hidden once visitor confirms 18+. PHP skips rendering
   entirely if the age_verified cookie is already set (zero DOM cost).
   ========================================================================== */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: var(--z-age-gate);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4);
    transition: opacity var(--transition-slow);
}

.age-gate--hidden {
    opacity: 0;
    pointer-events: none;
}

.age-gate__backdrop {
    position: absolute;
    inset: 0;
    background: var(--color-overlay-age-gate);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.age-gate__card {
    position: relative;
    z-index: 1;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-white-08);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-10) var(--spacing-8);
    max-width: var(--content-max-width-modal);
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-modal);
}

.age-gate__logo {
    margin-bottom: var(--spacing-6);
}

.age-gate__logo-text {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.age-gate__icon {
    font-size: var(--text-display);
    font-weight: var(--font-bold);
    color: var(--color-accent);
    line-height: var(--leading-none);
    margin-bottom: var(--spacing-4);
    letter-spacing: -0.02em;
}

.age-gate__title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-4);
}

.age-gate__body {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6; /* TODO: needs token */
    margin: 0 0 var(--spacing-3);
}

.age-gate__body strong {
    color: var(--color-text-primary);
}

.age-gate__sub {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.6; /* TODO: needs token */
    margin: 0 0 var(--spacing-8);
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.age-gate__btn {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    border: none;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.age-gate__btn:active {
    transform: scale(0.98);
}

.age-gate__btn--enter {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--spacing-4) var(--spacing-6);
    font-size: var(--text-base);
}

.age-gate__btn--enter:hover {
    background: var(--color-accent-hover);
}

.age-gate__btn--leave {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-gate__btn--leave:hover {
    color: var(--color-text-secondary);
    border-color: rgba(255, 255, 255, 0.2); /* TODO: needs token */
}

@media (max-width: 480px) {
    .age-gate__card {
        padding: var(--spacing-8) var(--spacing-6);
    }
}

/* ==========================================================================
   0. Breadcrumb — contextual navigation above gallery info panel

   2026-04-03: added for Models → Model → Gallery navigation context.
   ========================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-1);
    padding: var(--spacing-3) var(--spacing-6) 0;
    font-size: var(--text-xs);
}

.breadcrumb__item {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a.breadcrumb__item:hover {
    color: var(--color-text-accent);
}

.breadcrumb__item--current {
    color: var(--color-text-primary);
    font-weight: var(--font-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 24ch;
}

.breadcrumb__sep {
    color: var(--color-text-muted, var(--color-text-secondary));
    opacity: var(--opacity-medium);
    font-size: var(--text-micro);
}

/* ==========================================================================
   1. Gallery Info Panel — Variant B
   ========================================================================== */

.gallery-info-panel {
    background: var(--color-bg-surface); /* visual decoration — structural padding in layout.css */
    border-radius: var(--radius-xl);
}

.gallery-info__model-link {
    text-decoration: none;
    display: inline-block;
}

.gallery-info__model-link:hover .gallery-info__model-name {
    color: var(--color-accent-hover);
}

.gallery-info__model-name {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-1);
    line-height: var(--leading-tight);
    display: inline-block;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: var(--spacing-1);
    transition: color var(--transition-base);
}

.gallery-info__title {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    font-style: italic;
    color: var(--color-text-secondary);
    margin: var(--spacing-2) 0 var(--spacing-5);
    line-height: var(--leading-tight);
}

.gallery-info__starring {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--spacing-4);
    letter-spacing: 0.02em;
}

.gallery-info__starring-link {
    color: var(--color-text-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.gallery-info__description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--spacing-4);
}

/* ==========================================================================
   2. CTA Panel
   ========================================================================== */

.gallery-cta {
    background: var(--color-accent-subtle);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    transition: all var(--transition-base);
}

.gallery-cta__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.gallery-cta:hover {
    background: rgba(59, 130, 246, 0.1); /* TODO: needs token */
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.gallery-cta__text {
    flex: 1;
}

.gallery-cta__count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-1);
}

.gallery-cta__action {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-accent);
}

.gallery-cta__arrow {
    font-size: var(--text-lg);
    color: var(--color-accent);
    transition: transform var(--transition-fast);
}

.gallery-cta:hover .gallery-cta__arrow {
    transform: translateX(2px);
}

/* ==========================================================================
   3. Photo Viewer & Navigation
   ========================================================================== */

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 1000);
    align-items: center;
    justify-content: center;
}

.lightbox--open {
    display: flex;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: var(--color-overlay-dark);
    cursor: pointer;
}

.lightbox__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

.lightbox__counter {
    margin-top: var(--spacing-2);
    color: rgba(255, 255, 255, 0.6); /* TODO: needs token */
    font-size: var(--text-sm);
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    /* 2026-04-06: increased z-index to 4 to be above the end-screen (z-index: 3) 
       reason: user reported the close button was "in shadow" and unclickable when at the end 
    */
    z-index: 4; /* TODO: needs token */
    background: rgba(0, 0, 0, 0.6); /* TODO: needs token */
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    width: var(--size-touch-target);
    height: var(--size-touch-target);
    font-size: 24px; /* TODO: needs token */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.15); /* TODO: needs token */
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2; /* TODO: needs token */
    background: rgba(0, 0, 0, 0.6); /* TODO: needs token */
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    width: var(--size-touch-target-lg);
    height: var(--size-touch-target-lg);
    font-size: 22px; /* TODO: needs token */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.15); /* TODO: needs token */
}

.lightbox__nav--prev { left: var(--spacing-4); }
.lightbox__nav--next { right: var(--spacing-4); }

/* Persistent CTA bar at bottom */
.lightbox__cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2; /* TODO: needs token */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%); /* TODO: needs token */
    padding: var(--spacing-6) var(--spacing-8) var(--spacing-4);
    text-align: center;
}

.lightbox__cta-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-1);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.lightbox__cta-link:hover { opacity: var(--opacity-hover); }

.lightbox__cta-count {
    font-size: var(--text-sm);
    color: var(--color-white-65);
}

.lightbox__cta-action {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-accent, #3b82f6);
}

/* End screen — shown after last photo */
.lightbox__end-screen {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 3; /* TODO: needs token */
    background: var(--color-overlay-dark);
    align-items: center;
    justify-content: center;
}

.lightbox__end-screen--visible {
    display: flex;
}

.lightbox__end-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-6);
    padding: var(--spacing-8);
    text-align: center;
    max-width: 480px; /* TODO: needs token */
}

.lightbox__end-text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8); /* TODO: needs token */
    line-height: var(--leading-relaxed);
    margin: 0;
}

.lightbox__end-cta {
    background: var(--color-accent, #3b82f6);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
}

.lightbox__end-cta:hover {
    background: var(--color-accent-hover, #2563eb);
}

.lightbox__end-close {
    background: none;
    border: none;
    color: var(--color-white-50);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: color var(--transition-base);
}

.lightbox__end-close:hover {
    color: var(--color-white-90);
}

/* Mobile */
@media (max-width: 768px) {
    .lightbox__nav--prev { left: var(--spacing-2); }
    .lightbox__nav--next { right: var(--spacing-2); }
    .lightbox__nav { width: var(--size-touch-target); height: var(--size-touch-target); font-size: 18px; /* TODO: needs token */ }
    .lightbox__cta { padding: var(--spacing-4) var(--spacing-4) var(--spacing-3); }
}

/* ==========================================================================
   4. Thumbnail Grid — dimmed overlay state
   ========================================================================== */

/* All thumbs dimmed by default, active at full brightness */
/* 2025-04-01: changed from border-based active to opacity-based */
.thumbnail-item .thumbnail-image {
    opacity: var(--opacity-dim);
    transition: opacity var(--transition-fast);
}

.thumbnail-item:hover .thumbnail-image {
    opacity: var(--opacity-heavy);
}

.thumbnail-item.active .thumbnail-image {
    opacity: 1;
}

/* ==========================================================================
   5. Sidebar Components
   ========================================================================== */

.sidebar {
    background: var(--color-bg-surface);
    /* 2026-04-03: removed border, elevated with shadow + larger radius */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-4);
}

.sidebar__title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-3);
}

.sidebar__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* 2026-04-03: added — each affiliate link is now a floating card */
.sidebar__item {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3) var(--spacing-4);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sidebar__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sidebar__link {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-accent);
    text-decoration: none;
    margin-bottom: var(--spacing-1);
    transition: color var(--transition-base);
}

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

.sidebar__desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ==========================================================================
   6. Loading States
   ========================================================================== */

.loading-spinner {
    width: 20px; /* TODO: needs token */
    height: 20px; /* TODO: needs token */
    border: 2px solid var(--color-border);
    border-top: 2px solid var(--color-accent);
    border-radius: var(--radius-full);
    animation: spin var(--transition-spin) infinite; /* 2026-04-13: @keyframes spin moved to base.css */
}

.loading-skeleton {
    background: linear-gradient(90deg, 
        var(--color-bg-surface) 0%, 
        var(--color-bg-elevated) 50%, 
        var(--color-bg-surface) 100%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite; /* TODO: needs token */
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   7. Utility Components
   ========================================================================== */

.fade-in {
    animation: fadeIn var(--transition-slow);
}

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

/* ==========================================================================
   9. Site Footer
   ========================================================================== */

.site-footer {
    background: var(--color-bg-surface);
    /* 2026-04-03: replaced border-top with shadow — consistent with header treatment */
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.4); /* TODO: needs token */
    padding: var(--spacing-8) 0;
    margin-top: var(--spacing-12);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
    padding-bottom: var(--spacing-6);
    /* 2026-04-03: removed border-bottom — spacing separates top/bottom rows */
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.footer__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.footer__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2) var(--spacing-5);
    align-items: center;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    padding-top: var(--spacing-5);
    flex-wrap: wrap;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.footer__age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    padding: 0.2em 0.6em;
    line-height: var(--leading-none);
    flex-shrink: 0;
}

.footer__attribution {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   10. Search Results
   ========================================================================== */

.search-header {
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.search-header__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-3);
}

.search-header__query {
    color: var(--color-accent);
    font-weight: var(--font-normal);
}

.search-header__count {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin: 0;
}

.no-results,
.empty-search {
    text-align: center;
    padding: var(--spacing-12) var(--spacing-6);
    background: var(--color-bg-surface);
    /* 2026-04-03: removed border — shadow + bg elevation */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.no-results h3,
.empty-search h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-3);
}

.no-results p,
.empty-search p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-4);
    max-width: 500px; /* TODO: needs token */
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   11. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-8);
    flex-wrap: wrap;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; /* TODO: needs token */
    height: 40px; /* TODO: needs token */
    padding: 0 var(--spacing-2);
    background: var(--color-bg-elevated);
    /* 2026-04-03: removed border — shadow provides definition */
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
}

.pagination__item:hover:not(.pagination__item--current):not(.pagination__item--disabled) {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.pagination__item--current {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: none;
    font-weight: var(--font-semibold);
}

.pagination__item--disabled {
    opacity: var(--opacity-medium);
    cursor: not-allowed;
    color: var(--color-text-muted);
}

.pagination__dots {
    padding: 0 var(--spacing-1);
    color: var(--color-text-muted);
    font-weight: var(--font-medium);
}

/* Mobile */
@media (max-width: 768px) {
    .pagination {
        gap: var(--spacing-1);
    }
    
    .pagination__item {
        min-width: 36px; /* TODO: needs token */
        height: 36px; /* TODO: needs token */
        font-size: var(--text-xs);
    }
    
    /* 2026-04-12: changed from display:none to icon-only — hiding prev/next entirely
       left users with no navigation when there were few page numbers (e.g. 3 pages).
       Show as compact square buttons matching the page number style. */
    .pagination__item--prev,
    .pagination__item--next {
        font-size: 0;
        min-width: 36px; /* TODO: needs token */
        width: 36px; /* TODO: needs token */
    }

    .pagination__item--prev::before {
        content: '←';
        font-size: var(--text-sm);
    }

    .pagination__item--next::after {
        content: '→';
        font-size: var(--text-sm);
    }
}

/* ==========================================================================
   12. Alerts
   ========================================================================== */

.alert {
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-6);
    font-weight: var(--font-medium);
    border: 1px solid;
}

.alert--success {
    background: rgba(34, 197, 94, 0.1); /* TODO: needs token */
    color: #22c55e; /* TODO: needs token */
    border-color: rgba(34, 197, 94, 0.2); /* TODO: needs token */
}

.alert--error {
    background: rgba(239, 68, 68, 0.1); /* TODO: needs token */
    color: #ef4444; /* TODO: needs token */
    border-color: rgba(239, 68, 68, 0.2); /* TODO: needs token */
}

.alert--warning {
    background: rgba(245, 158, 11, 0.1); /* TODO: needs token */
    color: #f59e0b; /* TODO: needs token */
    border-color: rgba(245, 158, 11, 0.2); /* TODO: needs token */
}

.alert--info {
    background: rgba(59, 130, 246, 0.1); /* TODO: needs token */
    color: var(--color-info);
    border-color: rgba(59, 130, 246, 0.2); /* TODO: needs token */
}

/* ==========================================================================
   13. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3) var(--spacing-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 40px; /* TODO: needs token */
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
}

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

.btn--secondary {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background: var(--color-bg-surface);
    border-color: var(--color-accent);
}

.btn--ghost {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn--ghost:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn--sm {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--text-xs);
    min-height: 32px; /* TODO: needs token */
}

.btn--lg {
    padding: var(--spacing-4) var(--spacing-6);
    font-size: var(--text-base);
    min-height: 48px; /* TODO: needs token */
}

/* ==========================================================================
   7b. Sort Bar — wrapper for the sort/filter pill row now below the header

   2026-04-12: added — sort controls extracted from the header into this standalone bar.
               Lives in views/partials/sort-bar.php, included above the gallery grid.
   ========================================================================== */

.sort-bar {
    margin-bottom: var(--spacing-4);
}

/* ==========================================================================
   8. Homepage Controls — sort toggle, filter toggle, count indicator, random note

   2026-04-02: added gallery-sort component
   reason: sort toggle buttons above the homepage masonry grid; active state
           is managed by infinite-scroll.js which toggles --active modifier

   2026-04-02: added gallery-filter, gallery-controls, gallery-count, gallery-random-note
   reason: filter toggle (All time / New this month), count indicator, and random
           sort notice are new homepage features added alongside the Random sort button
   ========================================================================== */

/* Controls wrapper — sort and filter side by side */
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 2026-04-07: changed from space-between — all 4 pills left-aligned now that "All time" is removed */
    width: 100%;
    gap: var(--spacing-2);
}

/* Sort toggle */
.gallery-sort {
    display: flex;
    gap: var(--spacing-2);
}

/* Filter toggle — same visual style as sort, grouped separately */
.gallery-filter {
    display: flex;
    gap: var(--spacing-2);
    margin-left: var(--spacing-3); /* 2026-04-07: small gap to visually separate filter pill from sort pills */
    padding-left: var(--spacing-3);
    border-left: 1px solid var(--color-border); /* 2026-04-07: subtle divider between sort group and filter pill */
}

.gallery-sort__btn,
.gallery-filter__btn {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    /* 2026-04-05: added display: inline-block — consistency with sort buttons */
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-sm);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.gallery-sort__btn:hover,
.gallery-filter__btn:hover {
    color: var(--color-text-accent);
    box-shadow: var(--shadow-md);
}

.gallery-sort__btn--active,
.gallery-filter__btn--active {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: none;
}

.gallery-sort__btn--active:hover,
.gallery-filter__btn--active:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

/* Gallery count indicator — "Showing X of Y galleries" */
.gallery-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--spacing-4);
}

/* Random sort notice — shown only when sort=random is active */
.gallery-random-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--spacing-4);
    font-style: italic;
}

.gallery-random-note__link {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

.gallery-random-note__link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Mobile — all 4 pills in a single scrollable row */
/* 2026-04-07: changed from column stacking — caused "New" to drop to a third line on iPhone */
@media (max-width: 600px) {
    .gallery-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: var(--spacing-2);
    }

    .gallery-controls::-webkit-scrollbar {
        display: none;
    }

    .gallery-sort__btn,
    .gallery-filter__btn {
        padding: var(--spacing-2) var(--spacing-3);
        white-space: nowrap;
        flex-shrink: 0;
        font-size: var(--text-xs);
    }

    .gallery-filter {
        margin-left: var(--spacing-1);
        padding-left: var(--spacing-2);
        border-left: 1px solid var(--color-border);
    }
}

/* ==========================================================================
   8. Site Header
   ========================================================================== */

.site-header {
    background: var(--color-bg-surface);
    /* 2026-04-03: replaced border-bottom with shadow — depth without a hard line */
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); /* TODO: needs token */
    padding: var(--spacing-4) 0;
    /* 2026-04-11: changed sticky→fixed; iOS Safari breaks transform on sticky elements */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    /* 2026-04-07: hide-on-scroll-down behaviour */
    transition: transform 0.3s ease; /* TODO: needs token — 0.3s ease differs from --transition-slow (0.3s ease-out) */
    will-change: transform;
}

.site-header--hidden {
    transform: translateY(-100%);
}

/* 2026-04-11: honour reduced-motion preference in CSS so JS scroll listener
   can run unconditionally (removing the JS early-return that was silently
   disabling header hiding on iPhones with Accessibility > Reduce Motion on) */
@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
}

/* 2026-04-12: removed .site-header__controls — sort row moved to sort-bar.php partial above gallery grid */

.site-branding {
    flex-shrink: 0; /* 2026-04-11: prevent branding squishing on narrow mobile screens */
}

.site-branding .site-logo {
    text-decoration: none;
    color: var(--color-text-primary);
}

/* 2026-04-03: replaced h1 selector with span class — h1 belongs to page content */
.site-branding__name {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    display: block;
    line-height: var(--leading-none);
}

/* 2026-04-12: flex/max-width moved to .search-wrapper — .search-container is now a full-width child of the wrapper */
.search-container {
    width: 100%;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--color-bg-elevated);
    /* 2026-04-03: removed border — elevated bg + shadow provides definition */
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.search-form:focus-within {
    box-shadow: var(--shadow-ring-accent);
}

.search-input {
    flex: 1;
    padding: var(--spacing-3) var(--spacing-4);
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: var(--text-base);
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-button {
    padding: var(--spacing-3);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: var(--color-accent);
}

/* Site navigation links (header) */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.site-nav__link {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition-base), background var(--transition-base);
}

.site-nav__link:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-elevated);
}

.site-nav__link--active {
    color: var(--color-accent);
}

/* Mobile layout — 2026-04-07: simplified header row, search fills space */
/* 2026-04-12: .search-container rules removed — now .search-wrapper handles flex: 1 */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: nowrap;
    }
}

.slide-up {
    animation: slideUp var(--transition-slow);
}

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

/* ==========================================================================
   9. Models Page — A-Z filter, model cards, page header

   2026-04-03: added for /models index and /models/{slug} detail pages
   reason: photo thumbnail cards, A-Z alphabet nav, and page heading styles
   ========================================================================== */

/* Page heading block */
.models-page__header {
    margin: var(--spacing-8) 0 var(--spacing-6);
}

.models-page__back {
    display: inline-block;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: var(--spacing-3);
    transition: color var(--transition-base);
}

.models-page__back:hover {
    color: var(--color-accent);
}

.models-page__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-2);
    line-height: var(--leading-tight);
}

.models-page__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

.models-page__empty {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    margin: var(--spacing-8) 0;
}

/* A-Z alphabet filter bar */
.az-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-6);
}

.az-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 var(--spacing-2);
    /* 2026-04-03: removed border — shadow + bg elevation replaces it */
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all var(--transition-base);
}

.az-filter__btn:hover {
    color: var(--color-text-accent);
    box-shadow: var(--shadow-md);
}

.az-filter__btn--active {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: none;
}

.az-filter__btn--active:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

/* Model card grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
}

.model-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--color-bg-surface);
    /* 2026-04-03: removed border — shadow + radius gives floating card look */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.model-card__thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-bg-elevated);
    position: relative;
}

.model-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.model-card:hover .model-card__img {
    transform: scale(1.04);
}

.model-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-elevated);
}

.model-card__info {
    padding: var(--spacing-3) var(--spacing-3) var(--spacing-4);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.model-card__name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    line-height: var(--leading-snug);
}

.model-card__count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Mobile — 2 columns on small screens */
@media (max-width: 600px) {
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-3);
    }

    .az-filter {
        gap: var(--spacing-1);
    }

    .az-filter__btn {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: var(--text-xs);
    }
}

/* ==========================================================================
   10. Model Strip — compact horizontal scroll row on the homepage

   2026-04-03: replaces the old featured-models grid (which was placed after
   the infinite-scroll sentinel and therefore never visible).
   Positioned above the gallery grid so it is always visible on page load.
   Cards are small (120×160px) with name + count overlaid on the photo.
   ========================================================================== */

.model-strip {
    margin: 0 0 var(--spacing-6);
}

.model-strip__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--spacing-3);
}

.model-strip__label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.model-strip__all {
    font-size: var(--text-sm);
    color: var(--color-text-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

.model-strip__all:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Horizontally scrollable track */
.model-strip__track {
    display: flex;
    gap: var(--spacing-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-2);
    /* hide scrollbar visually but keep it functional */
    scrollbar-width: none;
}

.model-strip__track::-webkit-scrollbar {
    display: none;
}

/* Individual card — fixed small size, portrait ratio
   2026-04-03: widened from 120→130px — at 120px only 6 cards fit with no overflow;
               at 130px ~8 cards are visible with 8 more scrollable */
.model-strip__card {
    flex: 0 0 130px; /* TODO: needs token */
    width: 130px; /* TODO: needs token */
    height: 173px; /* TODO: needs token */
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    scroll-snap-align: start;
    background: var(--color-bg-elevated);
    transition: transform var(--transition-base);
}

.model-strip__card:hover {
    transform: translateY(-2px);
}

.model-strip__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base), opacity var(--transition-slower);
    /* 2026-04-07: fade-in transition on load */
    opacity: 0;
}

.model-strip__img.is-loaded {
    opacity: 1;
}

.model-strip__card:hover .model-strip__img {
    transform: scale(1.05);
}

.model-strip__placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-elevated);
}

/* Always-visible overlay — gradient + name + count */
.model-strip__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-5) var(--spacing-2) var(--spacing-2);
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%); /* TODO: needs token */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.model-strip__name {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    line-height: var(--leading-snug);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-strip__count {
    font-size: var(--text-micro);
    color: var(--color-white-65);
    line-height: var(--leading-none);
}

/* ==========================================================================
   11. Related Galleries — "More from {model}" row on gallery detail page

   2026-04-03: added for the related galleries row shown below the thumbnail
   grid on the gallery show page. 4-column photo card grid with overlay label.
   ========================================================================== */

.related-galleries {
    margin-top: var(--spacing-8);
    padding-top: var(--spacing-6);
    /* 2026-04-03: removed border-top — section label provides visual separation */
}

.related-galleries__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--spacing-4);
}

.related-galleries__label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.related-galleries__all {
    font-size: var(--text-sm);
    color: var(--color-text-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

.related-galleries__all:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.related-galleries__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-3);
}

@media (max-width: 600px) {
    .related-galleries__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-galleries__card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    background: var(--color-bg-elevated);
    transition: transform var(--transition-base);
}

.related-galleries__card:hover {
    transform: translateY(-2px);
}

.related-galleries__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.related-galleries__card:hover .related-galleries__img {
    transform: scale(1.04);
}

.related-galleries__placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-elevated);
}

.related-galleries__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-6) var(--spacing-3) var(--spacing-3);
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, transparent 100%); /* TODO: needs token */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.related-galleries__title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-galleries__count {
    font-size: var(--text-micro);
    color: var(--color-white-65);
    line-height: var(--leading-none);
}

/* ==========================================================================
   Search Autocomplete Dropdown

   2026-04-12: added for PornHub-style search suggestions.
               Shown below the fixed header search input.
               Mobile-first: full viewport width on narrow screens.
   ========================================================================== */

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    z-index: var(--z-dropdown);
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-dropdown);
    overflow-y: auto;
    max-height: calc(100dvh - var(--header-height) - var(--spacing-6));
}

.search-dropdown[hidden] {
    display: none;
}

/* Section header — "MODELS" / "GALLERIES" labels */
.search-dropdown__section-label {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

/* Individual suggestion row */
.search-suggestion {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    min-height: 48px; /* TODO: needs token */
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-white-04);
    transition: background var(--transition-base);
}

.search-suggestion:hover,
.search-suggestion--active {
    background: rgba(255, 255, 255, 0.06); /* TODO: needs token */
}

/* Circular model avatar */
.search-suggestion__avatar {
    width: 40px; /* TODO: needs token */
    height: 40px; /* TODO: needs token */
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
    background: var(--color-bg-elevated);
}

/* Fallback avatar placeholder when image is missing */
.search-suggestion__avatar-placeholder {
    width: 40px; /* TODO: needs token */
    height: 40px; /* TODO: needs token */
    border-radius: 50%;
    background: var(--color-bg-elevated);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

/* Gallery thumbnail — square with slight rounding (visually distinct from circular model avatars) */
/* 2026-04-12: added — galleries now show actual thumbnail instead of emoji icon */
.search-suggestion__gallery-thumb {
    width: 40px; /* TODO: needs token */
    height: 40px; /* TODO: needs token */
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

/* Gallery icon placeholder */
.search-suggestion__gallery-icon {
    width: 40px; /* TODO: needs token */
    height: 40px; /* TODO: needs token */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

/* Text column */
.search-suggestion__text {
    flex: 1;
    min-width: 0;
}

.search-suggestion__name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* On desktop: constrain dropdown to the search-container width */
@media (min-width: 769px) {
    .search-dropdown {
        position: absolute;
        top: calc(100% + var(--spacing-2));
        left: 0;
        right: 0;
        /* Override fixed positioning for desktop */
        width: 100%;
        max-width: none;
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
        border-top: 1px solid var(--color-border);
    }
}

/* ==========================================================================
   Gallery Tag Pills
   2026-04-16: clickable tag links on gallery show page and homepage active filter
   ========================================================================== */

.gallery-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-top: var(--spacing-4);
}

.gallery-tag {
    display: inline-block;
    padding: 3px var(--spacing-3);
    border-radius: var(--radius-full);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.gallery-tag:hover,
.gallery-tag--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Active tag banner on homepage */
.active-tag-filter {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-3);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.active-tag-filter__label {
    font-weight: var(--font-medium);
}

.active-tag-filter__clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px var(--spacing-2);
    border-radius: var(--radius-full);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.active-tag-filter__clear:hover {
    background: var(--color-surface-3);
    color: var(--color-text-primary);
}
