/* =============================================
   SEO Pages — shared styles for wallpaper.php,
   category.php, series.php, and related templates
   ============================================= */

h2,h3,h4 { font-weight: 400; }  

/* Layout */
.seo-page { padding: 40px 0; min-height: calc(100vh - 170px); }
.seo-container { margin: 0 auto; padding: 0 40px; }

/* Breadcrumb */
.seo-breadcrumb { font-size: 11px; color: var(--text-secondary); letter-spacing: 1px; margin-bottom: 20px; text-transform: uppercase; }
.seo-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--text-primary); }
.seo-breadcrumb span { margin: 0 8px; opacity: 0.4; }

/* Page header */
.seo-page-header { margin-bottom: 30px; }
.seo-page-title { font-size: 62px; line-height:60px; font-weight: 400; letter-spacing: -0.6px; margin: 0 0 8px 0; text-transform: uppercase; }
.seo-page-subtitle { font-size: 12px; color: var(--text-secondary); letter-spacing: 0.5px; text-transform:uppercase; }
.seo-page-header-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* Split header layout (breadcrumb + title left, subtitle + dropdown right) */
.seo-page-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 40px;
}
.seo-page-header-left {
    flex: 1 1 auto;
    min-width: 0;
}
.seo-page-header-left .seo-breadcrumb {
    margin-bottom: 10px;
}
.seo-page-header-left .seo-page-title {
    margin: 0;
}
.seo-page-header-right {
    flex: 0 0 auto;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    text-align: right;
}
.seo-page-header-right .seo-page-subtitle {
    margin: 0;
}
.seo-page-header-right .seo-category-dropdown-wrap {
    width: 100%;
    justify-content: flex-end;
}

/* Section title */
.seo-section-title { font-size: 14px; letter-spacing: 1.5px; margin-bottom: 24px; color: var(--text-secondary); text-transform: uppercase; }

/* Tags */
.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.series-page .seo-tags,
.artist-page .seo-tags  { display:none; } /* disable for now */
.seo-tag { font-size: 10px; letter-spacing: 1px; padding: 6px 12px; border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; transition: all 0.2s; text-transform: uppercase; }
.seo-tag:hover { border-color: var(--text-primary); color: var(--text-primary); }

/* Buttons */
.seo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; align-items: stretch; }
.seo-btn { padding: 14px 22px; font-family: inherit; font-size: 11px; letter-spacing: 1.5px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text-primary); text-decoration: none; text-align: center; transition: all 0.2s; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; }
.seo-btn:hover { border-color: var(--text-primary); background: var(--bg-secondary); }
.seo-btn-primary { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
.seo-btn-primary:hover { background: #ccc; }

/* Resolution selector */
.seo-resolution-select {
    padding: 14px 12px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    min-width: 120px;
    align-self: flex-end;
    text-transform: uppercase;
}
.seo-resolution-select:focus { outline: none; border-color: var(--text-primary); }
.seo-resolution-select option { background: var(--bg-primary); color: var(--text-primary); }

/* Pagination — spread layout */
.seo-pagination { display: flex; align-items: center; margin-top: 40px; gap: 8px; }
.seo-pagination-prev { flex: 0 0 auto; }
.seo-pagination-pages { flex: 1; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.seo-pagination-next { flex: 0 0 auto; }
.seo-pagination a,
.seo-pagination span { padding: 8px 14px; font-size: 11px; letter-spacing: 1px; border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; font-family: inherit; transition: all 0.2s; text-transform: uppercase; }
.seo-pagination a:hover { border-color: var(--text-primary); color: var(--text-primary); }
.seo-pagination .active { border-color: var(--text-primary); color: var(--text-primary); }

/* =============================================
   Main-style wallpaper grid (shared)
   Matches the masonry-like grid from archive
   ============================================= */

.seo-wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 20px;
    margin-bottom: 60px;
}
.seo-wallpaper-grid-related {
  
}

.seo-grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Row spanning pattern to create visual variety */
.seo-grid-item:nth-child(3n+1) { grid-row: span 2; }
.seo-grid-item:nth-child(5n+2) { grid-row: span 3; }
.seo-grid-item:nth-child(7n+3) { grid-row: span 2; }
.seo-grid-item:nth-child(1) { grid-row: span 2 !important; }
.seo-grid-item:nth-child(2) { grid-column: span 2; grid-row: span 2 !important; }
.seo-grid-item:nth-child(3) { grid-row: span 3 !important; }

/* Additional 2-column spans throughout the grid */
.seo-grid-item:nth-child(8) { grid-column: span 2; }
.seo-grid-item:nth-child(15) { grid-column: span 2; }
.seo-grid-item:nth-child(23) { grid-column: span 2; }
.seo-grid-item:nth-child(32) { grid-column: span 2; }
.seo-grid-item:nth-child(11n+9) { grid-column: span 2; }

/* Prevent tall items on the last row for a clean bottom edge */
.seo-grid-item:nth-last-child(-n+5) { grid-row: span 1 !important; grid-column: span 1 !important; }



.seo-grid-image-wrapper {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary, #161616);
    animation: seoImgPulse 2s ease-in-out infinite;
}

.seo-grid-image-wrapper.seo-img-loaded {
    animation: none;
    background-color: transparent;
}

@keyframes seoImgPulse {
    0%, 100% { background-color: var(--bg-secondary, #161616); }
    50%       { background-color: #2a2a2a; }
}

.seo-grid-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.seo-grid-image-wrapper img[data-src] {
    opacity: 0;
}

.seo-grid-image-wrapper img.seo-lazy-loaded {
    opacity: 1;
}

.seo-grid-item:hover .seo-grid-image-wrapper img {
    opacity: 0.85;
    transform: scale(1.1);
}

.seo-grid-overlay {
    overflow: hidden;
    min-height: 14px;
    line-height: 1.1;
    color: var(--text-secondary);
}

.seo-grid-title {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.1;
    display: inline;
    text-transform: uppercase;
    color: var(--text-primary);
}

.seo-grid-meta {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    line-height: 1.1;
    display: inline;
    text-transform: uppercase;
}

.seo-grid-meta::before {
    content: '/';
    color: var(--text-secondary);
    margin: 0 6px;
}

/* =============================================
   Wallpaper detail page
   ============================================= */

.seo-wallpaper { display: grid; grid-template-columns: 1fr 390px; gap: 30px; margin-bottom: 60px; }
.seo-wallpaper-image { position: relative; border: 1px solid var(--border); overflow: hidden; }
.seo-wallpaper-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.seo-wallpaper-info { display: flex; flex-direction: column; gap: 24px; }
.seo-wallpaper-title { font-size: 32px; line-height:36px; font-weight: 400; letter-spacing: 1px; margin: 0; margin-bottom:5px; text-transform:uppercase}
.seo-wallpaper-artist { font-size: 12px; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; }
.seo-wallpaper-artist-link { color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.seo-wallpaper-artist-link:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.artist-website-icon { color: var(--text-secondary); text-decoration: none; font-size: 11px; margin-left: 4px; transition: color 0.2s; }
.artist-website-icon:hover { color: var(--primary); }
.artist-website-link { color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.artist-website-link:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.seo-wallpaper-credits { margin-top: 4px; }
.seo-wallpaper-credit { font-size: 11px; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin: 2px 0; }
.seo-wallpaper-description { font-size: 12px; color: var(--text-secondary); line-height: 1.8; }

.seo-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seo-detail { border: 1px solid var(--border); padding: 14px; }
.seo-detail-label { font-size: 9px; color: var(--text-secondary); letter-spacing: 1.5px; margin-bottom: 3px; text-transform: uppercase; }
.seo-detail-value { font-size: 14px; letter-spacing: 0.5px; }

.seo-series-badge { display: inline-block; font-size: 9px; letter-spacing: 1px; padding: 4px 10px; background-color: var(--border); color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; }
.seo-series-badge a { color: var(--text-secondary); text-decoration: none; }
.seo-series-badge a:hover { color: var(--text-primary); }

/* =============================================
   Category pages
   ============================================= */

/* Category dropdown (replaces sidebar) */
.seo-category-dropdown-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}
.seo-category-dropdown-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.seo-category-dropdown {
    padding: 10px 36px 10px 14px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 200px;
    max-width: 320px;
    text-transform: uppercase;
}
.seo-category-dropdown:focus { outline: none; border-color: var(--text-primary); }
.seo-category-dropdown option { background: var(--bg-primary); color: var(--text-primary); }

/* Sort dropdown - matching variant */
.seo-sort-dropdown {
    min-width: 160px;
    max-width: 200px;
}

/* Category index grid */
.seo-categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.seo-category-card { border: 1px solid var(--border); overflow: hidden; text-decoration: none; color: var(--text-primary); transition: border-color 0.2s; }
.seo-category-card:hover { border-color: var(--text-primary); }
.seo-category-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.seo-category-card-info { padding: 14px 16px; }
.seo-category-card-name { font-size: 13px; letter-spacing: 1px; margin-bottom: 4px; }
.seo-category-card-count { font-size: 10px; color: var(--text-secondary); }

/* =============================================
   Series page
   ============================================= */

.series-header { margin-bottom: 40px; }
.series-title { font-size: 22px; font-weight: 400; letter-spacing: 1.5px; margin: 0 0 8px 0; }
.series-description { font-size: 12px; color: var(--text-secondary); line-height: 1.7; max-width: 700px; margin-bottom: 16px; }

.series-meta { display: flex; gap: 24px; font-size: 11px; color: var(--text-secondary); letter-spacing: 0.5px; }
.series-meta-item { display: flex; align-items: center; gap: 6px; }
.series-meta-label {  }

.series-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.series-tag { font-size: 10px; letter-spacing: 0.5px; padding: 4px 10px; border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; transition: all 0.2s; }
.series-tag:hover { border-color: var(--text-primary); color: var(--text-primary); }

.more-series { border-top: 1px solid var(--border); padding-top: 40px; }
.more-series-title { font-size: 11px; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 20px; }
.more-series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.more-series-card { padding: 20px; border: 1px solid var(--border); text-decoration: none; color: var(--text-primary); transition: border-color 0.2s; }
.more-series-card:hover { border-color: var(--text-primary); }
.more-series-card-name { font-size: 12px; letter-spacing: 0.5px; margin-bottom: 4px; }
.more-series-card-count { font-size: 10px; color: var(--text-secondary); }


/* 404 page */
.not-found-page { display: flex; align-items: center; justify-content: center; }
.not-found-page .container { margin: 0 auto; }
.not-found-inner { text-align: left; width: 100%; }
.not-found-logo { width: 60px; height: 60px; opacity: 0.2; margin: 0 auto 30px; }
.not-found-code { font-size: 72px; line-height:70px; font-weight: 400; letter-spacing: 6px; margin: 0 0 15px; }
.not-found-links { display: flex; gap: 15px; justify-content: left; flex-wrap: wrap; margin-top: 40px; }
.not-found-links .nav-link { border: 1px solid var(--border); padding: 12px 24px; }
.not-found-steps { margin: 30px 0; padding: 24px 24px 24px 0; border: 1px solid var(--border); }
.not-found-steps-title { font-weight: 500; margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; padding-left: 24px; }
.not-found-steps ol { margin: 0; padding-left: 44px; }
.not-found-steps li { color: var(--text-secondary); margin-bottom: 8px; font-size: 13px; line-height: 1.6; }
.not-found-steps li:last-child { margin-bottom: 0; }
.not-found-contact { color: var(--text-secondary); font-size: 12px; margin-top: 20px; }
.not-found-contact a { color: var(--accent); }

/* site map for users page */
.sm-section { margin-bottom: 56px; }

.sm-section-label {
    font-size: 22px;
    line-height: 1;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 24px;
     padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
/* site map Main pages — same grid as categories/series */
.sm-pages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    column-gap: 48px;
            row-gap: 0;
}
.sm-page-link {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: block;
    transition: color 0.15s;
    text-transform: uppercase;
}
 .sm-page-link:hover { color: var(--text-primary); }

.page-home .main { padding-top: 0; }


/* =============================================
   Hero Search Section
   ============================================= */

.hero-section {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: visible;
    margin-bottom: 72px;
    z-index: 30;
    isolation: isolate;
}

.hero-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* Whole-collage slow zoom-out + lateral pan — oversized so edges never show */
.hero-collage {
    position: absolute;
    inset: -8%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 0px;
    animation: heroCollagePan 45s ease-in-out infinite alternate;
    will-change: transform;
}

/* Start zoomed-in & left, slowly reveal more by zooming out & panning right */
@keyframes heroCollagePan {
    0%   { transform: scale(1.45) translate(-12%, -1%); }
    100% { transform: scale(1.08) translate( 12%,  1%); }
}

.hero-cell {
    overflow: hidden;
    position: relative;
}

/* 16 cells across 8 cols × 8 rows — 2 cells per col, varied split points */
.hero-cell-1  { grid-column: 1; grid-row: 1 / span 5; }
.hero-cell-2  { grid-column: 1; grid-row: 6 / span 3; }
.hero-cell-3  { grid-column: 2; grid-row: 1 / span 3; }
.hero-cell-4  { grid-column: 2; grid-row: 4 / span 5; }
.hero-cell-5  { grid-column: 3; grid-row: 1 / span 4; }
.hero-cell-6  { grid-column: 3; grid-row: 5 / span 4; }
.hero-cell-7  { grid-column: 4; grid-row: 1 / span 6; }
.hero-cell-8  { grid-column: 4; grid-row: 7 / span 2; }
.hero-cell-9  { grid-column: 5; grid-row: 1 / span 2; }
.hero-cell-10 { grid-column: 5; grid-row: 3 / span 6; }
.hero-cell-11 { grid-column: 6; grid-row: 1 / span 4; }
.hero-cell-12 { grid-column: 6; grid-row: 5 / span 4; }
.hero-cell-13 { grid-column: 7; grid-row: 1 / span 5; }
.hero-cell-14 { grid-column: 7; grid-row: 6 / span 3; }
.hero-cell-15 { grid-column: 8; grid-row: 1 / span 3; }
.hero-cell-16 { grid-column: 8; grid-row: 4 / span 5; }

.hero-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: heroKenBurns 16s ease-in-out infinite alternate;
    will-change: transform;
}

/* Per-cell Ken Burns (subtle — global pan does the heavy lifting) */
.hero-cell-1  img { animation-delay:   0s; animation-duration: 18s; transform-origin: 30% 40%; }
.hero-cell-2  img { animation-delay:  -4s; animation-duration: 14s; transform-origin: 70% 60%; }
.hero-cell-3  img { animation-delay:  -8s; animation-duration: 20s; transform-origin: 50% 30%; }
.hero-cell-4  img { animation-delay:  -2s; animation-duration: 15s; transform-origin: 20% 70%; }
.hero-cell-5  img { animation-delay:  -6s; animation-duration: 17s; transform-origin: 80% 40%; }
.hero-cell-6  img { animation-delay: -10s; animation-duration: 19s; transform-origin: 40% 60%; }
.hero-cell-7  img { animation-delay:  -3s; animation-duration: 14s; transform-origin: 60% 20%; }
.hero-cell-8  img { animation-delay:  -7s; animation-duration: 16s; transform-origin: 10% 50%; }
.hero-cell-9  img { animation-delay: -11s; animation-duration: 13s; transform-origin: 90% 70%; }
.hero-cell-10 img { animation-delay:  -5s; animation-duration: 15s; transform-origin: 35% 55%; }
.hero-cell-11 img { animation-delay:  -9s; animation-duration: 18s; transform-origin: 65% 30%; }
.hero-cell-12 img { animation-delay:  -1s; animation-duration: 17s; transform-origin: 45% 80%; }
.hero-cell-13 img { animation-delay: -12s; animation-duration: 15s; transform-origin: 20% 35%; }
.hero-cell-14 img { animation-delay:  -6s; animation-duration: 19s; transform-origin: 75% 60%; }
.hero-cell-15 img { animation-delay: -14s; animation-duration: 13s; transform-origin: 55% 20%; }
.hero-cell-16 img { animation-delay:  -3s; animation-duration: 16s; transform-origin: 30% 75%; }

@keyframes heroKenBurns {
    0%   { transform: scale(1);    }
    100% { transform: scale(1.08); }
}

/* Dual-layer overlay: uniform darkening + hard fade-to-page at bottom */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(10,10,10,0)   0%,
            rgba(10,10,10,0)   30%,
            rgba(10,10,10,0.85) 72%,
            #0a0a0a            100%
        ),
        rgba(0,0,0,0.48);
}

/* Centered content */
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    z-index: 2;
}

.hero-tagline {
    font-size: 14px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin: 0;
}

.hero-search-wrap {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1000px;
    z-index: 40;
}

/* Match archive search bar — form wraps icon + input, button sits flush right */
.hero-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #333333;
    padding: 4px 6px 4px 16px;
    background: rgba(20, 20, 20, 0.8);
    transition: border-color 0.2s;
    backdrop-filter: blur(2px);
}

.hero-search-form:focus-within {
    border-color: var(--text-secondary);
    backdrop-filter: blur(6px);
}

.hero-search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.6;
    display: flex;
    align-items: center;
    padding-right: 12px;
    transition: opacity 0.2s;
}

.hero-search-form:focus-within .hero-search-icon {
    opacity: 1;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 0;
    padding: 16px 0;
}

.hero-search-input::placeholder {
    color: var(--text-secondary);
    text-transform: uppercase;
}

.hero-search-btn {
    background: var(--text-primary);
    border: none;
    color: var(--bg-primary);
    cursor: pointer;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.hero-search-btn:hover {
    background: #d0d0d0;
}

.hero-search-feedback {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.703);
    display: none;
    z-index: 80;
}

.hero-search-feedback.active {
    display: block;
}

.hero-search-status {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}

.hero-search-status:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.hero-search-status-icon {
    flex-shrink: 0;
    margin-right: 8px;
    opacity: 0.5;
}

.hero-search-status-text {
    flex: 1;
}

.hero-search-suggestions {
    display: flex;
    flex-direction: column;
}

.hero-search-suggestion {
    display: flex;
    align-items: baseline;
    opacity: 0;
    transform: translateY(-8px);
    animation: heroSuggestionSlideIn 0.28s ease-out forwards;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.hero-search-suggestion:last-child {
    border-bottom: none;
}

.hero-search-suggestion:hover {
    background: var(--bg-secondary);
}

.hero-search-suggestion-title {
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-search-suggestion-meta {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-search-empty {
    font-size: 10px;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 12px 14px;
    opacity: 0;
    transform: translateY(-8px);
    animation: heroSuggestionSlideIn 0.28s ease-out forwards;
}

@keyframes heroSuggestionSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Home Page Sections
   ============================================= */

.home-section {
    margin-bottom: 60px;
}
.home-section:last-child {
    margin-bottom: 0;
}
.home-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
}
.home-section-title {
    font-size: 36px;
    line-height: 1;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
}
.home-section-link {
    font-size: 11px;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    padding: 10px 18px;
    font-family: inherit;
}
.home-section-link:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Home grid — same patterns as related wallpapers grid */
.home-grid {
    margin-bottom: 0;
}

/* Categories — same grid as series */
.sm-categories {
   display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    column-gap: 48px;
    row-gap: 0;
}
.sm-category-link {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: color 0.15s;
    gap: 12px;
    text-transform: uppercase;
}
.sm-category-link:hover { color: var(--text-primary); }

/* Series — multi-column list */
 .sm-series {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    column-gap: 48px;
    row-gap: 0;
}
.sm-series-link {
    font-size: 12px;     
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: color 0.15s;
    gap: 12px;
    text-transform: uppercase;
}
.sm-series-link:hover { color: var(--text-primary); }
.sm-item-count {
    opacity: 0.35;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1440px) {
    .seo-container { padding: 0 20px; }
    .hero-section {  height: 720px; }  
}

@media (max-width: 1024px) {  
    .hero-section {  height: 620px; }  
}

@media (max-width: 768px) {
    .seo-page-title { font-size: 46px; line-height:40px; font-weight: 400; letter-spacing: -0.4px; margin: 0 0 8px 0; }

    /* Hero — wider collage so columns aren't squished, full-width search */
    .hero-section { margin-bottom: 48px; height: 520px; }
    .hero-collage { inset: -8% -30%; }
    .hero-tagline { font-size: 13px; letter-spacing: 2px; }
    .hero-content { align-items: stretch !important; padding: 0 20px; }
    .hero-search-wrap { width: 100% !important; max-width: none !important; }
    .hero-search-btn { padding: 14px 16px; letter-spacing: 1px; }

    /* Wallpaper detail */
    .seo-wallpaper { grid-template-columns: 1fr; gap: 24px; }
    .seo-resolution-select { min-width: 0; }

    /* Grids */
    .seo-wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .seo-grid-item:nth-child(2),
    .seo-grid-item:nth-child(8),
    .seo-grid-item:nth-child(15),
    .seo-grid-item:nth-child(23),
    .seo-grid-item:nth-child(32),
    .seo-grid-item:nth-child(11n+9) { grid-column: span 1; }

    /* Category */
    .seo-page-header-row { flex-direction: column; align-items: flex-start; }
    .seo-page-header-split { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 20px; 
    }
    .seo-page-header-right { 
        width: 100%; 
        align-items: flex-start; 
        text-align: left; 
    }
    .seo-page-header-right .seo-category-dropdown-wrap { 
        justify-content: flex-start; 
        flex-wrap: wrap;
    }
    .seo-category-dropdown { min-width: 0; flex: 1; }
    .seo-categories-grid { grid-template-columns: repeat(2, 1fr); }

    /* Series */
    .series-meta { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
    /* Hero — narrower phones */
    .hero-collage { inset: -8% -50%; }
    .hero-section { margin-bottom: 36px; }
    .hero-tagline { font-size: 12px; letter-spacing: 1.5px; }
    .hero-search-input { font-size: 12px; padding: 12px 0; }
    .hero-search-btn { padding: 12px 14px; font-size: 10px; }
    .home-section-title { font-size: 24px; }

    .seo-wallpaper-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }
    .seo-grid-item:nth-child(2),
    .seo-grid-item:nth-child(8),
    .seo-grid-item:nth-child(15),
    .seo-grid-item:nth-child(23),
    .seo-grid-item:nth-child(32),
    .seo-grid-item:nth-child(11n+9) { grid-column: span 1; }
}
