/* ============================================
   SITE UI — styles for the classes actually used
   by views/web templates (navbar, hero, home
   sections, item cards, footer).
   Loaded after main.css/components.css so it wins
   the cascade where selectors overlap.
   ============================================ */

:root {
    --site-bg: #f4f6fa;
    --site-dark: #1f2733;
    --site-dark-2: #2a3442;
    --site-accent: #34c17b;
    --site-accent-dark: #27a466;
    --site-border: #e6e9f0;
    --site-text: #2d3446;
    --site-muted: #8a94a6;
    --site-radius: 12px;
    --site-shadow: 0 1px 3px rgba(31, 39, 51, .06);
    --site-shadow-hover: 0 10px 24px rgba(31, 39, 51, .12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--site-bg);
    color: var(--site-text);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--site-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 64px;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}

.navbar-brand .logo i { color: var(--site-accent); }
.navbar-brand .logo:hover { text-decoration: none; color: #fff; opacity: .92; }

/* Search inside navbar */
.navbar-search {
    flex: 1;
    max-width: 420px;
}

.navbar-search .search-input {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
}

.navbar-search .search-input::placeholder { color: #93a0b3; }

.navbar-search .search-input:focus {
    background: rgba(255, 255, 255, .14);
    border-color: var(--site-accent);
}

.navbar-search .search-button {
    background: var(--site-accent);
}

.navbar-search .search-button:hover { background: var(--site-accent-dark); }

/* Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}

.navbar-menu > li > a {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #aeb8c7;
    font-weight: 500;
    font-size: .92rem;
    padding: .5rem .9rem;
    border-radius: 8px;
    white-space: nowrap;
}

.navbar-menu > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

.navbar-menu > li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(31, 39, 51, .16);
    list-style: none;
    padding: .4rem;
    margin: 0;
    z-index: 1001;
}

.dropdown.active .dropdown-menu { display: block; }

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    border-radius: 7px;
    color: var(--site-text);
    font-size: .9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: #f0f4f9;
    color: var(--site-accent-dark);
    text-decoration: none;
}

.dropdown-menu li a i {
    width: 18px;
    text-align: center;
    color: var(--site-muted);
}

.dropdown-menu .divider {
    height: 1px;
    background: var(--site-border);
    margin: .35rem .5rem;
}

.dropdown-toggle .fa-chevron-down {
    font-size: .65rem;
    transition: transform 150ms ease;
}

.dropdown.active .dropdown-toggle .fa-chevron-down { transform: rotate(180deg); }

/* Mobile menu toggle (hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 200ms ease;
}

.mobile-search-bar { display: none; }

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 27, .55);
    z-index: 999;
}

.menu-overlay.active { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(150deg, #1f2733 0%, #24405a 55%, #1d5c46 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
}

.hero-content h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: .75rem;
}

.hero-content h1 i { color: var(--site-accent); }

.hero-content > p {
    color: #b8c4d4;
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 2rem;
}

/* Hero search */
.hero-search {
    display: flex;
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .7rem 1.25rem;
    font-size: 1rem;
    color: var(--site-text);
    min-width: 0;
}

.hero-search-input:focus { outline: none; }

.hero-search-button {
    border: none;
    background: var(--site-accent);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms ease;
}

.hero-search-button:hover { background: var(--site-accent-dark); }

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}

.hero-stat i { color: var(--site-accent); font-size: 1.2rem; margin-bottom: .3rem; }
.hero-stat span { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stat small {
    color: #93a0b3;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 3rem 0; }

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.5rem;
    letter-spacing: -.3px;
}

.section-title i { color: var(--site-accent); margin-right: .35rem; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header .section-title { margin-bottom: 0; }

.see-more {
    color: var(--site-accent-dark);
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
}

.see-more:hover { color: var(--site-accent); text-decoration: none; }
.see-more i { font-size: .75rem; transition: transform 150ms ease; }
.see-more:hover i { transform: translateX(3px); }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.category-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--site-shadow);
    transition: all 200ms ease;
    color: var(--site-text);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow-hover);
    border-color: var(--site-accent);
    text-decoration: none;
    color: var(--site-text);
}

.category-card .category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #e7f7ef, #dcf1fb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--site-accent-dark);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.category-card p {
    font-size: .8rem;
    color: var(--site-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   ITEM CARDS (components/item-grid.ejs)
   ============================================ */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.item-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    overflow: hidden;
    box-shadow: var(--site-shadow);
    transition: all 200ms ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow-hover);
}

.item-card .item-link {
    display: block;
    color: inherit;
}

.item-card .item-link:hover { text-decoration: none; color: inherit; }

/* image wrapper (div.item-image > img) */
.item-card .item-image {
    position: relative;
    width: 100%;
    padding-top: 66%;
    background: #eef1f6;
    overflow: hidden;
}

.item-card .item-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

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

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25em .7em;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Badges row on card images (premium / new) */
.item-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
    pointer-events: none;
}

.item-badges .premium-badge { position: static; }

.new-badge {
    background: var(--site-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25em .7em;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Hover call-to-action overlay on the image */
.item-hover-cta {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 39, 51, .35);
    opacity: 0;
    transition: opacity 200ms ease;
}

.item-hover-cta span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .95);
    color: var(--site-text);
    font-size: .82rem;
    font-weight: 600;
    padding: .45em 1.1em;
    border-radius: 999px;
    transform: translateY(6px);
    transition: transform 200ms ease;
}

.item-card:hover .item-hover-cta { opacity: 1; }
.item-card:hover .item-hover-cta span { transform: translateY(0); }

.item-card .item-content { padding: .9rem 1rem 1rem; }

.item-card .item-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: .5rem;
    color: var(--site-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px solid #f0f2f7;
    padding-top: .6rem;
    margin-top: .15rem;
}

.item-stats {
    display: flex;
    gap: .9rem;
    font-size: .78rem;
    color: var(--site-muted);
}

.item-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.item-stats .stat i { color: #b6bfcc; font-size: .75rem; }

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .6rem;
}

.item-tags .tag {
    background: #f0f2f7;
    color: #55607a;
    font-size: .7rem;
    font-weight: 600;
    padding: .2em .65em;
    border-radius: 999px;
}

.item-date {
    font-size: .74rem;
    color: var(--site-muted);
    display: flex;
    align-items: center;
    gap: .35rem;
}

.no-results {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--site-muted);
}

.no-results i { font-size: 2rem; margin-bottom: .75rem; color: #ccd3de; }
.no-results h3 { font-size: 1.1rem; color: var(--site-text); }

/* ============================================
   TAGS CLOUD
   ============================================ */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.tags-cloud .tag-item {
    background: #fff;
    border: 1px solid var(--site-border);
    color: #55607a;
    font-size: .85rem;
    font-weight: 500;
    padding: .35em .95em;
    border-radius: 999px;
    transition: all 150ms ease;
}

.tags-cloud .tag-item:hover {
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: #fff;
    text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--site-dark);
    color: #aeb8c7;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

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

.footer .footer-section h3,
.footer .footer-section h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: .9rem;
}

.footer .footer-section h3 i { color: var(--site-accent); }

.footer .footer-section p {
    color: #93a0b3;
    font-size: .87rem;
    line-height: 1.6;
}

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

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

.footer .footer-section a {
    color: #93a0b3;
    font-size: .87rem;
}

.footer .footer-section a:hover { color: #fff; text-decoration: none; }

.social-links {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #aeb8c7;
    font-size: .95rem;
    transition: all 150ms ease;
}

.social-links a:hover {
    background: var(--site-accent);
    color: #fff;
    text-decoration: none;
}

.footer .stats-grid {
    display: flex;
    gap: 1.5rem;
}

.footer .stat-item {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.footer .stat-item i { color: var(--site-accent); margin-bottom: .25rem; }
.footer .stat-item span { color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer .stat-item small { color: #93a0b3; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 1.25rem;
    text-align: center;
}

.footer .footer-bottom p {
    color: #7c8798;
    font-size: .8rem;
    margin-bottom: .25rem;
}

.footer .disclaimer { font-size: .72rem; color: #5f6b7d; }

/* ============================================
   BACK TO TOP (created by main.js)
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--site-dark);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 200ms ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover { background: var(--site-accent-dark); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .navbar-search { display: none; }
    .mobile-search-bar {
        display: block;
        background: var(--site-dark-2);
        padding: .6rem 0;
    }
    .mobile-search-bar .search-input {
        background: rgba(255, 255, 255, .09);
        border: 1px solid rgba(255, 255, 255, .14);
        color: #fff;
    }
    .mobile-search-bar .search-input::placeholder { color: #93a0b3; }

    .mobile-menu-toggle { display: flex; }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(280px, 80vw);
        background: var(--site-dark);
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding: 1.25rem 1rem;
        z-index: 1002;
        overflow-y: auto;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .3);
    }

    .navbar-menu.active { display: flex; }

    .navbar-menu > li > a { padding: .75rem 1rem; }

    .dropdown .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, .05);
        border: none;
        box-shadow: none;
        margin-top: .25rem;
    }

    .dropdown-menu li a { color: #aeb8c7; }
    .dropdown-menu li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
    .dropdown-menu .divider { background: rgba(255, 255, 255, .1); }

    .hero { padding: 3rem 0 2.5rem; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content > p { font-size: .98rem; }
    .hero-stats { gap: 2rem; }
    .hero-stat span { font-size: 1.35rem; }

    .hero-search { flex-direction: row; }
    .hero-search-button { padding: .7rem 1.1rem; }

    .section { padding: 2rem 0; }
    .section-title { font-size: 1.25rem; }

    .items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .85rem; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ============================================
   BROWSE PAGE (browse.ejs)
   ============================================ */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--site-border);
    padding: .7rem 0;
    font-size: .85rem;
    color: var(--site-muted);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.breadcrumb a { color: var(--site-muted); }
.breadcrumb a:hover { color: var(--site-accent-dark); text-decoration: none; }
.breadcrumb > .container > i { font-size: .6rem; }
.breadcrumb span { color: var(--site-text); font-weight: 600; }

.browse-page { padding: 1.75rem 0 3rem; }

.browse-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.browse-sidebar { min-width: 0; }

.sidebar-sticky {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-section {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 1.1rem 1.15rem;
    box-shadow: var(--site-shadow);
}

.filter-section h3 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--site-muted);
    margin-bottom: .75rem;
}

.filter-section h3 i { color: var(--site-accent); margin-right: .3rem; }

.filter-options {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .7rem;
    border-radius: 8px;
    color: var(--site-text);
    font-size: .88rem;
    font-weight: 500;
}

.filter-option i { width: 16px; text-align: center; color: var(--site-muted); font-size: .8rem; }

.filter-option:hover {
    background: #f0f4f9;
    text-decoration: none;
    color: var(--site-accent-dark);
}

.filter-option.active {
    background: #e7f7ef;
    color: var(--site-accent-dark);
    font-weight: 600;
}

.filter-option.active i { color: var(--site-accent-dark); }

.filter-section .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
}

.filter-section .tag-item {
    background: #f0f2f7;
    border: none;
    color: #55607a;
    font-size: .78rem;
    font-weight: 500;
    padding: .3em .8em;
    border-radius: 999px;
}

.filter-section .tag-item:hover,
.filter-section .tag-item.active {
    background: var(--site-accent);
    color: #fff;
    text-decoration: none;
}

.browse-main { min-width: 0; }

.browse-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.browse-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.4px;
    margin-bottom: .15rem;
}

.browse-count {
    color: var(--site-muted);
    font-size: .88rem;
    margin: 0;
}

/* ============================================
   PAGINATION (components/pagination.ejs)
   ============================================ */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: 2rem;
    border: none;
    background: none;
}

.pagination-info {
    font-size: .82rem;
    color: var(--site-muted);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    color: var(--site-text);
    font-size: .85rem;
    font-weight: 600;
    transition: all 150ms ease;
}

.pagination-button:hover {
    border-color: var(--site-accent);
    color: var(--site-accent-dark);
    text-decoration: none;
}

.pagination-button.disabled {
    opacity: .45;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .5rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--site-border);
    color: var(--site-text);
    font-size: .85rem;
    font-weight: 600;
    transition: all 150ms ease;
}

.pagination-number:hover {
    border-color: var(--site-accent);
    color: var(--site-accent-dark);
    text-decoration: none;
}

.pagination-number.active {
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: #fff;
}

.pagination-ellipsis { color: var(--site-muted); padding: 0 .25rem; }

/* ============================================
   ITEM DETAIL — gaps not covered by item-detail.css
   ============================================ */
.item-images { min-width: 0; }

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .6rem;
    margin-top: .75rem;
}

.image-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--site-border);
    cursor: pointer;
    transition: all 150ms ease;
}

.image-gallery img:hover {
    border-color: var(--site-accent);
    transform: translateY(-2px);
}

.premium-badge.large {
    font-size: .85rem;
    padding: .4em 1em;
}

.item-details {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.item-details h3 { font-size: 1rem; margin-bottom: .9rem; }
.item-details h3 i { color: var(--site-accent); margin-right: .3rem; }

.details-grid {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f0f2f7;
    font-size: .88rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-row strong { color: var(--site-muted); font-weight: 600; }
.detail-row span { text-align: right; }

.item-tags-section { margin-top: 1.25rem; }

/* ============================================
   PAGE HEADER (search / tag / static pages)
   ============================================ */
.page-hero {
    background: linear-gradient(150deg, #1f2733 0%, #24405a 100%);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.4px;
    margin-bottom: .35rem;
}

.page-hero h1 i { color: var(--site-accent); }

.page-hero p {
    color: #b8c4d4;
    font-size: .98rem;
    margin: 0;
}

.page-hero .hero-search { margin-top: 1.5rem; }

/* ============================================
   STATIC PAGES (about / contact / help / privacy / terms)
   ============================================ */
.static-page { padding: 2.5rem 0 3rem; }

.static-content {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    padding: 2.25rem 2.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.static-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.75rem 0 .6rem;
}

.static-content h2:first-child { margin-top: 0; }
.static-content h2 i { color: var(--site-accent); margin-right: .4rem; }

.static-content p,
.static-content li {
    color: #55607a;
    font-size: .93rem;
    line-height: 1.7;
}

.static-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }

.static-content .lead {
    font-size: 1.05rem;
    color: var(--site-text);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #f0f2f7;
    padding: 1rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
    font-size: .98rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.faq-item h3 i { color: var(--site-accent); margin-right: .4rem; }
.faq-item p { margin: 0; }

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: .35rem; }

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--site-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.form-group input,
.form-group textarea {
    border: 1px solid #ccd3de;
    border-radius: 8px;
    padding: .65rem .85rem;
    font-size: .93rem;
    font-family: inherit;
    color: var(--site-text);
    transition: border-color 150ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(52, 193, 123, .15);
}

.form-submit {
    align-self: flex-start;
    background: var(--site-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .7rem 1.75rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease;
}

.form-submit:hover { background: var(--site-accent-dark); }

.form-success {
    display: none;
    background: #e7f7ef;
    border: 1px solid #b7e4cd;
    color: #1d7a4f;
    border-radius: 8px;
    padding: .8rem 1rem;
    font-size: .9rem;
    font-weight: 500;
}

.form-success.visible { display: block; }

/* ============================================
   ALL TAGS PAGE
   ============================================ */
.tags-category-section {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.tags-category-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tags-category-section h2 i { color: var(--site-accent); margin-right: .4rem; }

.tags-category-section .tags-cloud { justify-content: flex-start; }

/* ============================================
   ERROR / 404 PAGES
   ============================================ */
.error-page {
    padding: 5rem 0;
    text-align: center;
}

.error-page .error-code {
    font-size: 4.5rem;
    font-weight: 800;
    color: #dfe4ec;
    line-height: 1;
    margin-bottom: .5rem;
}

.error-page h1 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.error-page p {
    color: var(--site-muted);
    margin-bottom: 1.75rem;
}

.error-page .btn-home {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--site-accent);
    color: #fff;
    font-weight: 600;
    padding: .7rem 1.6rem;
    border-radius: 999px;
}

.error-page .btn-home:hover {
    background: var(--site-accent-dark);
    text-decoration: none;
    color: #fff;
}

/* Browse page responsive */
@media (max-width: 900px) {
    .browse-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
    .static-content { padding: 1.5rem 1.25rem; }
}
