/* ============================================================
   SMANIO GAMES — main.css
   Black · Neon Green · Neon Purple
   ============================================================ */

/* -------------------------------------------------------
   1. TOKENS
------------------------------------------------------- */
:root {
    --bg:           #080810;
    --bg-card:      #0e0e18;
    --bg-card-h:    #13132050;
    --bg-nav:       #07070f;
    --bg-topbar:    #050509;

    --green:        #00ff88;
    --green-dim:    #00cc6a;
    --green-glow:   rgba(0, 255, 136, 0.25);

    --purple:       #a020f0;
    --purple-dim:   #7d00cc;
    --purple-glow:  rgba(160, 32, 240, 0.25);

    --blue:         #00aaff;
    --blue-glow:    rgba(0, 170, 255, 0.20);

    --red:          #ff3366;
    --red-glow:     rgba(255, 51, 102, 0.20);

    --white:        #f0f0f8;
    --muted:        #6b6b82;
    --muted-light:  #9898b0;
    --border:       #1a1a28;
    --border-bright:#2a2a40;

    --font-head:    'Barlow Condensed', 'Impact', sans-serif;
    --font-body:    'Barlow', 'Inter', system-ui, sans-serif;

    --radius:       6px;
    --radius-lg:    10px;
    --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);

    --container:    1240px;
    --gap:          24px;
}

/* -------------------------------------------------------
   2. RESET & BASE
------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Selection */
::selection { background: var(--green); color: var(--bg); }

/* -------------------------------------------------------
   3. LAYOUT
------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

#page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
#main-content { flex: 1; }

/* -------------------------------------------------------
   4. TOP BAR
------------------------------------------------------- */
.topbar {
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
    font-size: 12px;
    color: var(--muted);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar__brand {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--purple);
}
.topbar__links { display: flex; gap: 16px; }
.topbar__links a {
    color: var(--muted);
    transition: color var(--transition);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 11px;
}
.topbar__links a:hover { color: var(--green); }

/* -------------------------------------------------------
   5. HEADER
------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-block: 14px;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img,
.site-logo .custom-logo { max-height: 34px; width: auto; display: block; }
.footer-brand .site-logo img,
.footer-brand .site-logo .custom-logo { max-height: 38px; }
.site-logo__text {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}
.logo-smanio { color: var(--white); }
.logo-games {
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow);
}

/* Primary nav */
.primary-nav { flex: 1; }
.primary-nav__list {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
}
.primary-nav__list li { position: relative; }
.primary-nav__list a {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-light);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.primary-nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px; height: 2px;
    background: var(--green);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition);
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a {
    color: var(--white);
    background: rgba(255,255,255,0.04);
}
.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item > a::after {
    transform: scaleX(1);
}

/* Sub-menu */
.primary-nav__list .sub-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 6px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.primary-nav__list li:hover > .sub-menu { display: block; }
.primary-nav__list .sub-menu a { font-size: 0.85rem; padding: 8px 12px; }

/* Header actions */
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn-search, .btn-menu {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-light);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.btn-search:hover, .btn-menu:hover {
    color: var(--green);
    background: rgba(0,255,136,0.08);
}
.btn-menu { display: none; flex-direction: column; gap: 5px; }
.btn-menu span {
    display: block; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.btn-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-menu.open span:nth-child(2) { opacity: 0; }
.btn-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search bar */
.search-bar {
    border-top: 1px solid var(--border);
    padding: 14px 0;
    background: var(--bg-nav);
    animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.search-bar__form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar__form:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}
.search-bar__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 12px 16px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
}
.search-bar__input::placeholder { color: var(--muted); }
.search-bar__btn {
    padding: 12px 16px;
    color: var(--muted);
    transition: color var(--transition);
}
.search-bar__btn:hover { color: var(--green); }

/* -------------------------------------------------------
   6. NEWS TICKER
------------------------------------------------------- */
.news-ticker {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.news-ticker__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 38px;
}
.ticker-label {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--bg);
    background: var(--green);
    padding: 3px 10px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}
.ticker-track {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    flex: 1;
    min-width: 0;
}
.ticker-items {
    display: flex;
    gap: 40px;
    will-change: transform;
}
.ticker-item {
    white-space: nowrap;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--muted-light);
    flex-shrink: 0;
    transition: color var(--transition);
}
.ticker-item:hover { color: var(--green); }

/* -------------------------------------------------------
   7. SECTION HEADERS
------------------------------------------------------- */
.section-latest, .section-category, .section-related { padding: 52px 0; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.section-title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
}
.accent-line {
    display: inline-block;
    width: 4px; height: 26px;
    background: var(--green);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--green-glow);
    flex-shrink: 0;
}
.accent-line--purple { background: var(--purple); box-shadow: 0 0 12px var(--purple-glow); }
.accent-line--blue   { background: var(--blue);   box-shadow: 0 0 12px var(--blue-glow); }
.accent-line--red    { background: var(--red);    box-shadow: 0 0 12px var(--red-glow); }

.see-all {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-light);
    transition: color var(--transition);
    white-space: nowrap;
}
.see-all:hover { color: var(--green); }

/* -------------------------------------------------------
   8. HERO
------------------------------------------------------- */
.hero {
    position: relative;
    min-height: clamp(420px, 60vh, 680px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero__img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.55);
    transition: transform 8s ease;
}
.hero:hover .hero__img { transform: scale(1.03); }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 8, 16, 0.98) 0%,
        rgba(8, 8, 16, 0.7) 40%,
        rgba(8, 8, 16, 0.1) 100%
    );
}
.hero__content {
    position: relative; z-index: 1;
    padding-bottom: 60px;
    padding-top: 60px;
    max-width: 800px;
}
.hero__cat {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.hero__title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.hero__title a { color: var(--white); transition: color var(--transition); }
.hero__title a:hover { color: var(--green); }
.hero__excerpt {
    font-size: 1.05rem;
    color: rgba(240,240,248,0.75);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 24px;
}
.hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted-light);
    margin-bottom: 28px;
}
.meta-sep { color: var(--border-bright); }
.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 28px;
    background: var(--green);
    color: var(--bg);
    border-radius: var(--radius);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.hero__btn:hover {
    background: var(--green-dim);
    color: var(--bg);
    box-shadow: 0 0 28px var(--green-glow);
    transform: translateY(-2px);
}

/* -------------------------------------------------------
   9. CATEGORY COLOR SYSTEM
------------------------------------------------------- */
.sg-cat--green  { background: rgba(0,255,136,0.12); color: var(--green); }
.sg-cat--purple { background: rgba(160,32,240,0.15); color: var(--purple); }
.sg-cat--blue   { background: rgba(0,170,255,0.12); color: var(--blue); }
.sg-cat--red    { background: rgba(255,51,102,0.12); color: var(--red); }

/* -------------------------------------------------------
   10. LATEST NEWS GRID
------------------------------------------------------- */
.latest-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--gap);
}
.latest-grid__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* -------------------------------------------------------
   11. CARDS GRID
------------------------------------------------------- */
.cards-grid {
    display: grid;
    gap: var(--gap);
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------
   12. CARD
------------------------------------------------------- */
.sg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.sg-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-bright);
}
.sg-card--green:hover  { border-color: var(--green); box-shadow: 0 8px 32px var(--green-glow); }
.sg-card--purple:hover { border-color: var(--purple); box-shadow: 0 8px 32px var(--purple-glow); }
.sg-card--blue:hover   { border-color: var(--blue); box-shadow: 0 8px 32px var(--blue-glow); }
.sg-card--red:hover    { border-color: var(--red); box-shadow: 0 8px 32px var(--red-glow); }

.sg-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.sg-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sg-card:hover .sg-card__img { transform: scale(1.06); }

.sg-card__img-placeholder {
    width: 100%; height: 100%;
    background: var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
}

.sg-card__cat {
    position: absolute;
    top: 12px; left: 12px;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius);
}

.sg-card__body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sg-card__title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.sg-card__title a { color: var(--white); transition: color var(--transition); }
.sg-card__title a:hover { color: var(--green); }

.sg-card__excerpt {
    font-size: 0.85rem;
    color: var(--muted-light);
    line-height: 1.55;
    flex: 1;
}
.sg-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: auto;
}

/* Large card (hero card) */
.sg-card--large .sg-card__title { font-size: 1.7rem; font-weight: 800; }
.sg-card--large .sg-card__excerpt { font-size: 0.95rem; }

/* Small card (sidebar) */
.sg-card--small {
    flex-direction: row;
    align-items: center;
}
.sg-card--small .sg-card__img-wrap {
    aspect-ratio: auto;
    width: 100px;
    height: 68px;
    flex-shrink: 0;
}
.sg-card--small .sg-card__cat { font-size: 0.6rem; top: 6px; left: 6px; }
.sg-card--small .sg-card__body { padding: 12px; }
.sg-card--small .sg-card__title { font-size: 0.9rem; }

/* -------------------------------------------------------
   13. INSTAGRAM CTA
------------------------------------------------------- */
.ig-cta {
    margin: 20px 0;
    padding: 0;
}
.ig-cta__inner {
    background: linear-gradient(135deg, rgba(160,32,240,0.15) 0%, rgba(0,255,136,0.08) 100%);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.ig-cta__inner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    pointer-events: none;
}
.ig-cta__text h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}
.ig-cta__text p { color: var(--muted-light); font-size: 1rem; }
.ig-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 2px solid var(--purple);
    color: var(--purple);
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.ig-cta__btn:hover {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 0 28px var(--purple-glow);
}

/* -------------------------------------------------------
   14. SINGLE POST
------------------------------------------------------- */
.single-header {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.single-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--green);
}
.single-header--purple::before { background: var(--purple); }
.single-header--blue::before   { background: var(--blue); }
.single-header--red::before    { background: var(--red); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { color: var(--border-bright); }
.breadcrumb span:last-child {
    color: var(--muted);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-cat {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.single-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    max-width: 900px;
}
.single-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted-light);
    flex-wrap: wrap;
}
.single-meta svg { vertical-align: middle; }

.single-hero-img { padding: 0 0 0; }
.single-hero-img__img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.single-body { padding: 40px 0 60px; }
.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* Entry content (article body) */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(240,240,248,0.88);
}
.entry-content h2 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin: 2em 0 0.6em;
    letter-spacing: 0.01em;
}
.entry-content h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin: 1.6em 0 0.5em;
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content a { color: var(--green); border-bottom: 1px solid var(--green-glow); }
.entry-content a:hover { color: var(--white); border-color: var(--white); }
.entry-content ul, .entry-content ol {
    padding-left: 1.4em;
    margin-bottom: 1.4em;
}
.entry-content li { margin-bottom: 0.4em; }
.entry-content strong { color: var(--white); font-weight: 700; }
.entry-content em { font-style: italic; }
.entry-content blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--green);
    background: rgba(0,255,136,0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--muted-light);
}
.entry-content img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 1.5em 0;
}
.entry-content code {
    font-size: 0.88em;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--green);
    font-family: 'Fira Code', 'Courier New', monospace;
}
.entry-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.entry-content pre code { background: none; border: none; padding: 0; }

/* Tags */
.single-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--border);
}
.tags-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.tag-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-bright);
    border-radius: 999px;
    color: var(--muted-light);
    transition: all var(--transition);
}
.tag-pill:hover {
    background: rgba(0,255,136,0.08);
    border-color: var(--green);
    color: var(--green);
}

/* Share */
.single-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid var(--border);
}
.share-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-right: 4px; }
.share-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border-bright);
    color: var(--muted-light);
    transition: all var(--transition);
}
.share-btn--ig:hover { background: rgba(160,32,240,0.15); border-color: var(--purple); color: var(--purple); }
.share-btn--x:hover  { background: rgba(240,240,248,0.08); border-color: var(--white); color: var(--white); }
.share-btn--fb:hover { background: rgba(24,119,242,0.15); border-color: #1877f2; color: #1877f2; }

/* Sidebar */
.single-sidebar { position: sticky; top: 80px; }
.widget { margin-bottom: 28px; }
.widget-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Related list (sidebar) */
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color var(--transition), background var(--transition);
}
.related-item:hover { border-color: var(--border-bright); background: var(--bg-card); }
.related-item__img { width: 80px; height: 52px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.related-item__body { flex: 1; min-width: 0; }
.related-item__title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.related-item:hover .related-item__title { color: var(--green); }
.related-item__date { font-size: 0.75rem; color: var(--muted); }

/* -------------------------------------------------------
   15. ARCHIVE PAGE
------------------------------------------------------- */
.archive-header {
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.archive-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--green);
}
.archive-header--purple::before { background: var(--purple); }
.archive-header--blue::before   { background: var(--blue); }
.archive-header--red::before    { background: var(--red); }

.archive-type {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}
.archive-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.archive-desc { color: var(--muted-light); font-size: 1rem; max-width: 600px; margin-bottom: 12px; }
.archive-count { font-size: 0.85rem; color: var(--muted); }

.archive-body { padding: 48px 0 80px; }

/* -------------------------------------------------------
   16. PAGINATION
------------------------------------------------------- */
.pagination-wrap {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.pagination-wrap .nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px; height: 42px;
    padding: 0 12px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    color: var(--muted-light);
    transition: all var(--transition);
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
    background: var(--green);
    color: var(--bg);
    border-color: var(--green);
    box-shadow: 0 0 20px var(--green-glow);
}

/* -------------------------------------------------------
   17. NO RESULTS / 404
------------------------------------------------------- */
.no-results, .error-404 {
    padding: 100px 0;
    text-align: center;
}
.no-results__icon, .error-404__code {
    color: var(--muted);
    margin-bottom: 24px;
}
.error-404__code {
    font-family: var(--font-head);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--green), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-404__title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.error-404__msg { color: var(--muted-light); margin-bottom: 32px; }
.no-results h2 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.no-results p { color: var(--muted-light); margin-bottom: 32px; }

/* -------------------------------------------------------
   18. FOOTER
------------------------------------------------------- */
.site-footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    padding-top: 60px;
    padding-bottom: 0;
    margin-top: auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.footer-tagline { color: var(--muted); font-size: 0.9rem; margin-top: 16px; max-width: 240px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border-bright);
    color: var(--muted-light);
    transition: all var(--transition);
}
.social-link--ig:hover { background: rgba(160,32,240,0.2); border-color: var(--purple); color: var(--purple); }

.footer-nav { display: flex; gap: 48px; }
.footer-nav__col { flex: 1; }
.footer-nav__title {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.footer-nav__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav__list a {
    font-size: 0.9rem;
    color: var(--muted-light);
    transition: color var(--transition);
}
.footer-nav__list a:hover { color: var(--green); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.footer-copy strong { color: var(--muted-light); }
.footer-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--green); }

/* -------------------------------------------------------
   19. PAGE CONTENT
------------------------------------------------------- */
.page-content { padding: 60px 0 80px; }
.page-content__header { margin-bottom: 32px; }
.page-content__title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* -------------------------------------------------------
   20. COMMENTS
------------------------------------------------------- */
.single-comments { padding: 48px 0; border-top: 1px solid var(--border); }
.comments-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 28px;
}
.comment-form input, .comment-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--white);
    border-radius: var(--radius);
    padding: 10px 14px;
    width: 100%;
    font: inherit;
    transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--green);
}
.comment-form .submit {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--green);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition);
    width: auto;
}
.comment-form .submit:hover { background: var(--green-dim); }

/* -------------------------------------------------------
   21. RESPONSIVE
------------------------------------------------------- */
@media (max-width: 1100px) {
    .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .latest-grid { grid-template-columns: 1fr; }
    .latest-grid__side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap);
    }
}

@media (max-width: 860px) {
    :root { --gap: 16px; }

    .primary-nav { display: none; }
    .btn-menu { display: flex; }

    .primary-nav.mobile-open {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg-nav);
        z-index: 200;
        padding: 80px 24px 40px;
        overflow-y: auto;
    }
    .primary-nav.mobile-open .primary-nav__list {
        flex-direction: column;
        gap: 4px;
    }
    .primary-nav.mobile-open .primary-nav__list a {
        font-size: 1.2rem;
        padding: 14px 16px;
    }
    .primary-nav.mobile-open .sub-menu {
        display: block;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    .site-header__inner { gap: 16px; }

    .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }

    .single-layout { grid-template-columns: 1fr; }
    .single-sidebar { position: static; }

    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-nav { flex-wrap: wrap; gap: 32px; }

    .ig-cta__inner { flex-direction: column; text-align: center; gap: 24px; }
}

@media (max-width: 600px) {
    .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
    .latest-grid__side { grid-template-columns: 1fr; }

    .hero__content { padding-bottom: 40px; }
    .hero__title { font-size: 1.8rem; }

    .section-latest, .section-category { padding: 36px 0; }

    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    .single-title { font-size: 1.7rem; }
    .single-meta { font-size: 0.78rem; }

    .topbar { display: none; }
}

/* -------------------------------------------------------
   22. ANIMATIONS & UTILITIES
------------------------------------------------------- */
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
    50%       { box-shadow: 0 0 0 8px transparent; }
}
.pulse { animation: pulse-green 2s infinite; }

/* Fade-in on scroll (JS adds .visible) */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, var(--green) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
