/* SomGeek category archive pages */

body.category .sg-main {
    background:
        radial-gradient(circle at 14% 0%, rgba(39, 54, 68, 0.22), transparent 34rem),
        #050709;
}

.sg-archive-page {
    padding: 28px 0 52px;
}

.sg-archive-header {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 64px);
    margin-bottom: 24px;
    background:
        linear-gradient(90deg, rgba(6, 9, 12, 0.98), rgba(12, 17, 22, 0.88)),
        radial-gradient(circle at 82% 30%, rgba(232, 177, 19, 0.16), transparent 28rem);
    border: 1px solid var(--sg-border);
    border-left: 5px solid var(--sg-gold);
    box-shadow: var(--sg-shadow);
}

.sg-archive-header::after {
    content: "SG";
    position: absolute;
    right: 3%;
    bottom: -34%;
    color: rgba(255, 255, 255, 0.025);
    font-family: "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
    font-size: clamp(10rem, 22vw, 22rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.sg-archive-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 6px 10px;
    margin-bottom: 14px;
    background: var(--sg-gold);
    color: #07090b;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sg-archive-header h1 {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0;
    color: #fff;
    font-family: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.sg-archive-description {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-top: 18px;
    color: #c6cdd3;
    font-size: 1.05rem;
    line-height: 1.6;
}

.sg-archive-description p {
    margin: 0;
    color: inherit;
}

.sg-archive-count {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    color: var(--sg-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sg-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.sg-archive-content,
.sg-archive-sidebar {
    min-width: 0;
}

.sg-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sg-archive-card {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #10161c, #090d11);
    border: 1px solid var(--sg-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transition: transform 180ms ease, border-color 180ms ease;
}

.sg-archive-card:hover {
    transform: translateY(-4px);
    border-color: #4a5561;
}

.sg-archive-card__media {
    position: relative;
    min-height: 270px;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 25%, rgba(226, 170, 22, 0.13), transparent 22rem),
        #080c10;
    border-bottom: 1px solid var(--sg-border);
}

.sg-archive-card__media img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    display: block;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.sg-archive-card:hover .sg-archive-card__media img {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.sg-archive-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(226, 170, 22, 0.18);
    font-family: "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
    font-size: 7rem;
    font-weight: 900;
}

.sg-archive-card__body {
    padding: 20px;
}

.sg-archive-card h2 {
    margin: 13px 0 10px;
    color: #fff;
    font-family: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.03;
    text-transform: uppercase;
}

.sg-archive-card h2 a {
    color: inherit;
}

.sg-archive-card h2 a:hover {
    color: var(--sg-gold-bright);
}

.sg-archive-card__excerpt {
    margin: 0 0 18px;
    color: #bfc6cd;
    font-size: 0.96rem;
    line-height: 1.58;
}

.sg-archive-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    padding-top: 14px;
    color: var(--sg-muted-dark);
    border-top: 1px solid var(--sg-border-soft);
    font-size: 0.72rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.sg-pagination {
    margin-top: 26px;
}

.sg-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sg-pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #0d1217;
    color: #dfe3e7;
    border: 1px solid var(--sg-border);
    font-weight: 800;
}

.sg-pagination .page-numbers.current,
.sg-pagination .page-numbers:hover {
    background: var(--sg-gold);
    border-color: var(--sg-gold);
    color: #06080a;
}

.sg-archive-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

body.admin-bar.category .sg-archive-sidebar {
    top: 56px;
}

.sg-archive-sidebar-box,
.sg-archive-empty {
    background: linear-gradient(180deg, #0f1419, #090d11);
    border: 1px solid var(--sg-border);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.sg-archive-sidebar-box {
    padding: 18px;
}

.sg-archive-sidebar-box > h2 {
    position: relative;
    margin: 0 0 16px;
    padding-bottom: 11px;
    color: #fff;
    font-family: "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
    font-size: 1.35rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--sg-border);
}

.sg-archive-sidebar-box > h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 58px;
    height: 3px;
    background: var(--sg-gold);
}

.sg-archive-latest {
    display: grid;
    gap: 12px;
}

.sg-archive-latest article {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sg-border-soft);
}

.sg-archive-latest article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sg-archive-latest__thumb {
    height: 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #070a0d;
    color: var(--sg-gold);
    border: 1px solid var(--sg-border);
    font-weight: 900;
}

.sg-archive-latest__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sg-archive-latest h3 {
    margin: 0 0 6px;
    color: #eef1f3;
    font-size: 0.9rem;
    line-height: 1.3;
}

.sg-archive-latest h3 a {
    color: inherit;
}

.sg-archive-latest time {
    color: var(--sg-muted-dark);
    font-size: 0.7rem;
}

.sg-archive-categories {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sg-archive-categories li {
    border-bottom: 1px solid var(--sg-border-soft);
}

.sg-archive-categories li:last-child {
    border-bottom: 0;
}

.sg-archive-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    color: #d8dde1;
    font-weight: 700;
}

.sg-archive-categories a:hover,
.sg-archive-categories .is-current a {
    color: var(--sg-gold-bright);
}

.sg-archive-categories small {
    min-width: 28px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    background: #080b0f;
    color: var(--sg-muted);
    border: 1px solid var(--sg-border);
}

.sg-archive-categories .is-current small {
    background: var(--sg-gold);
    border-color: var(--sg-gold);
    color: #06080a;
}

.sg-archive-empty {
    padding: clamp(28px, 5vw, 60px);
    text-align: center;
}

.sg-archive-empty h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    text-transform: uppercase;
}

.sg-archive-empty p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: #bec5cc;
}

@media (max-width: 1120px) {
    .sg-archive-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .sg-archive-card__media,
    .sg-archive-card__media img {
        min-height: 230px;
    }
}

@media (max-width: 900px) {
    .sg-archive-layout {
        grid-template-columns: 1fr;
    }

    .sg-archive-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .sg-archive-page {
        padding-top: 16px;
    }

    .sg-archive-header {
        padding: 28px 22px;
    }

    .sg-archive-header h1 {
        font-size: clamp(2.5rem, 14vw, 4.3rem);
    }

    .sg-archive-grid,
    .sg-archive-sidebar {
        grid-template-columns: 1fr;
    }

    .sg-archive-card__media,
    .sg-archive-card__media img {
        min-height: 220px;
    }

    .sg-archive-card__body {
        padding: 17px;
    }
}
