/* ==========================================================
   WhyIsNotWorking.com - Main Stylesheet
   ========================================================== */

/* ----------------------------------------------------------
   1. CSS VARIABLES
---------------------------------------------------------- */
:root {
    --bg:           #0D0D0F;
    --bg2:          #13131A;
    --bg3:          #1A1A26;
    --card:         #16161F;
    --card-hover:   #1C1C28;
    --border:       rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);

    --green:        #00E87A;
    --green-dim:    rgba(0, 232, 122, 0.12);
    --green-glow:   rgba(0, 232, 122, 0.08);
    --red:          #FF4D4D;
    --red-dim:      rgba(255, 77, 77, 0.12);
    --yellow:       #F5C842;
    --yellow-dim:   rgba(245, 200, 66, 0.12);

    --text:         #F0F0F5;
    --text2:        #C4C4D4;
    --muted:        #8A8A9A;
    --muted2:       #55556A;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-xs:    6px;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --nav-h:        64px;
    --max-w:        1100px;
    --content-w:    720px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a {
    color: var(--green);
    text-decoration: none;
    transition: opacity 0.15s;
}
a:hover { opacity: 0.8; }
a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 3px;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}
button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 3px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.3px;
}

p { color: var(--text2); }

/* ----------------------------------------------------------
   3. LAYOUT UTILITIES
---------------------------------------------------------- */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 80px;
}

/* ----------------------------------------------------------
   4. NAVIGATION
---------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 15, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--nav-h);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.4px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo span { color: var(--green); }
.site-logo .logo-dot { color: var(--muted); }
.site-logo:hover { opacity: 1; color: var(--text); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-menu li a {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: color 0.15s, background 0.15s;
}
.nav-menu li a:hover {
    color: var(--text);
    background: var(--bg3);
    opacity: 1;
}
.nav-menu li.current-menu-item a { color: var(--text); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: var(--green);
    color: #0D0D0F;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-xs);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    margin-left: auto;
    border-radius: var(--radius-xs);
    transition: background 0.15s;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--muted);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------
   5. HERO SECTION
---------------------------------------------------------- */
.hero-section {
    padding: 88px 24px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 5px 16px;
    background: var(--green-dim);
    border: 1px solid rgba(0, 232, 122, 0.2);
    border-radius: 20px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.06;
    color: var(--text);
    max-width: 700px;
    margin-bottom: 18px;
}
.hero-title em {
    font-style: normal;
    color: var(--green);
}

.hero-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 44px;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   6. STATUS CHECKER TOOL
---------------------------------------------------------- */
.checker-wrap {
    width: 100%;
    max-width: 640px;
    margin-bottom: 12px;
}

.checker-box {
    display: flex;
    align-items: center;
    background: var(--bg2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.checker-box:focus-within,
.checker-box.is-checking {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.checker-icon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--muted2);
    flex-shrink: 0;
}

.checker-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    padding: 17px 0;
    letter-spacing: -0.2px;
    caret-color: var(--green);
    min-width: 0;
}
.checker-input::placeholder { color: var(--muted2); font-weight: 400; }

.checker-btn {
    flex-shrink: 0;
    margin: 8px;
    padding: 10px 22px;
    background: var(--green);
    color: #0D0D0F;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}
.checker-btn:hover  { opacity: 0.88; }
.checker-btn:active { transform: scale(0.97); }

.checker-hint {
    font-size: 12px;
    color: var(--muted2);
    margin-top: 10px;
    text-align: center;
}

/* ----------------------------------------------------------
   7. RESULT CARD
---------------------------------------------------------- */
.result-area {
    width: 100%;
    max-width: 640px;
    margin-top: 8px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    animation: slideUp 0.22s ease;
    text-align: left;
}

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

.result-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.result-icon.up       { background: var(--green-dim); color: var(--green); }
.result-icon.down     { background: var(--red-dim); color: var(--red); }
.result-icon.checking { background: var(--yellow-dim); color: var(--yellow); }

.result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.result-domain {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-detail {
    font-size: 13px;
    color: var(--muted);
}

.result-badge {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.result-badge.up       { background: var(--green-dim); color: var(--green); }
.result-badge.down     { background: var(--red-dim); color: var(--red); }
.result-badge.checking { background: var(--yellow-dim); color: var(--yellow); }

/* ----------------------------------------------------------
   8. STATS BAR
---------------------------------------------------------- */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 640px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.stat-num span { color: var(--green); }

.stat-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ----------------------------------------------------------
   9. SECTION LABELS
---------------------------------------------------------- */
.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.section-label .section-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    order: 2;
}
.section-label .section-more::after { display: none; }

/* ----------------------------------------------------------
   10. POPULAR SITES GRID
---------------------------------------------------------- */
.popular-section { padding: 64px 0; }

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.site-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    text-align: left;
}
.site-card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
    opacity: 1;
}

.site-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    flex-shrink: 0;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.site-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-url {
    font-size: 12px;
    color: var(--muted2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
}

/* ----------------------------------------------------------
   11. STATUS DOT STATES
---------------------------------------------------------- */
.status-up      { background: var(--green); box-shadow: 0 0 6px rgba(0, 232, 122, 0.5); }
.status-down    { background: var(--red); }
.status-partial { background: var(--yellow); }
.status-unknown { background: var(--muted2); }

/* ----------------------------------------------------------
   12. HOW IT WORKS SECTION
---------------------------------------------------------- */
.how-section {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.how-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.how-step {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.how-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.how-body {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

/* ----------------------------------------------------------
   13. BLOG SECTION
---------------------------------------------------------- */
.blog-section {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s;
}
.blog-card:hover { border-color: var(--border-hover); }

.blog-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg3);
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-thumb img { transform: scale(1.03); }

.blog-body { padding: 20px; }

.blog-meta {
    font-size: 12px;
    color: var(--muted2);
    margin-bottom: 8px;
}

.blog-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}
.blog-title a {
    color: var(--text);
    text-decoration: none;
}
.blog-title a:hover { color: var(--green); opacity: 1; }

.blog-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ----------------------------------------------------------
   14. SINGLE STATUS PAGE
---------------------------------------------------------- */
.status-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted2);
    margin-bottom: 32px;
}
.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--text); opacity: 1; }

.status-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.status-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.status-icon-wrap.status-up   { background: var(--green-dim); color: var(--green); }
.status-icon-wrap.status-down { background: var(--red-dim); color: var(--red); }
.status-icon-wrap.status-unknown { background: var(--bg3); color: var(--muted); }

.status-text { flex: 1; min-width: 0; }

.status-headline {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 6px;
}

.status-updated {
    font-size: 14px;
    color: var(--muted);
}

.status-badge {
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.status-badge.status-up      { background: var(--green-dim); color: var(--green); }
.status-badge.status-down    { background: var(--red-dim); color: var(--red); }
.status-badge.status-partial { background: var(--yellow-dim); color: var(--yellow); }
.status-badge.status-unknown { background: var(--bg3); color: var(--muted); }

.status-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    min-width: 140px;
}

.stat-card-label {
    font-size: 11px;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-card-val {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}
.stat-card-val.status-up   { color: var(--green); }
.stat-card-val.status-down { color: var(--red); }

.recheck-wrap { display: flex; flex-direction: column; gap: 12px; }

.recheck-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}
.recheck-btn:hover {
    border-color: var(--green);
    background: var(--green-dim);
    color: var(--green);
}
.recheck-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ----------------------------------------------------------
   15. ENTRY CONTENT (Blog Posts and Pages)
---------------------------------------------------------- */
.entry-header { margin-bottom: 32px; }

.entry-cats {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 12px;
}
.entry-cats a { color: var(--green); }

.entry-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 14px;
}

.entry-meta {
    font-size: 13px;
    color: var(--muted2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.meta-sep { color: var(--border); }

.entry-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16 / 9;
    background: var(--bg3);
}
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }

.entry-content {
    color: var(--text2);
    font-size: 16px;
    line-height: 1.8;
}
.entry-content h2 {
    font-size: 22px;
    color: var(--text);
    margin: 36px 0 14px;
    letter-spacing: -0.3px;
}
.entry-content h3 {
    font-size: 18px;
    color: var(--text);
    margin: 28px 0 10px;
}
.entry-content p { margin-bottom: 18px; }
.entry-content a { color: var(--green); }
.entry-content ul,
.entry-content ol {
    list-style: revert;
    padding-left: 24px;
    margin-bottom: 18px;
}
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
    border-left: 3px solid var(--green);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--bg2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--muted);
    font-style: italic;
}
.entry-content code {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: var(--green);
}
.entry-content pre {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 24px;
}
.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
}

.entry-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.entry-tags a {
    padding: 4px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--muted);
}
.entry-tags a:hover { border-color: var(--green); color: var(--green); opacity: 1; }

/* ----------------------------------------------------------
   16. SIDEBAR
---------------------------------------------------------- */
.sidebar, .status-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget,
.widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.widget-title,
.footer-widget-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.1px;
}

.mini-checker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mini-checker input {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.mini-checker input:focus { border-color: var(--green); }
.mini-checker input::placeholder { color: var(--muted2); }
.mini-checker button {
    width: 100%;
    padding: 10px;
    background: var(--green);
    color: #0D0D0F;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: opacity 0.15s;
}
.mini-checker button:hover { opacity: 0.88; }

.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text2);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.related-list li:last-child a { border-bottom: none; }
.related-list li a:hover { color: var(--green); opacity: 1; }

/* ----------------------------------------------------------
   17. ARCHIVE PAGE
---------------------------------------------------------- */
.archive-hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--border);
}

.archive-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 10px;
}

.archive-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0 24px;
    flex-wrap: wrap;
}
.filter-bar input {
    flex: 1;
    min-width: 200px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.filter-bar input:focus { border-color: var(--green); }
.filter-bar input::placeholder { color: var(--muted2); }

.filter-status-btns { display: flex; gap: 6px; }
.filter-btn {
    padding: 8px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--green-dim);
    border-color: rgba(0, 232, 122, 0.3);
    color: var(--green);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}

.archive-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.archive-card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
    opacity: 1;
}

.ac-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
    flex-shrink: 0;
}

.ac-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ac-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-url {
    font-size: 12px;
    color: var(--muted2);
}

.ac-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ac-time {
    font-size: 12px;
    color: var(--muted2);
    font-family: var(--font-display);
}

/* ----------------------------------------------------------
   18. PAGINATION
---------------------------------------------------------- */
.nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 0;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
}
.page-numbers:hover,
.page-numbers.current {
    background: var(--green-dim);
    border-color: rgba(0, 232, 122, 0.3);
    color: var(--green);
    opacity: 1;
}

.no-results {
    color: var(--muted);
    font-size: 15px;
    padding: 40px 0;
    text-align: center;
    grid-column: 1 / -1;
}

/* ----------------------------------------------------------
   19. FOOTER
---------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 280px; }
.footer-brand .site-logo { font-size: 16px; margin-bottom: 12px; display: inline-block; }
.footer-tagline { font-size: 14px; color: var(--muted2); line-height: 1.6; }

.footer-nav-wrap { display: flex; gap: 64px; }

.footer-col-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
    font-size: 14px;
    color: var(--muted2);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text); opacity: 1; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--muted2);
}
.footer-copy a { color: var(--muted2); }
.footer-copy a:hover { color: var(--text); opacity: 1; }

.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 13px;
    color: var(--muted2);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--muted); opacity: 1; }

/* ----------------------------------------------------------
   20. RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 900px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .status-sidebar { display: none; }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-nav-wrap { gap: 40px; }
}

@media (max-width: 768px) {
    .section-inner { padding: 0 20px; }
    .nav-wrap { padding: 0 20px; }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 2px;
        z-index: 99;
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { padding: 10px 14px; border-radius: var(--radius-sm); }

    .nav-toggle { display: flex; }
    .nav-cta    { display: none; }

    .hero-section { padding: 52px 16px 48px; }
    .hero-title   { letter-spacing: -1px; }
    .hero-sub     { font-size: 15px; }
    .checker-input { font-size: 16px; }
    .checker-btn  { padding: 10px 14px; font-size: 13px; }

    .stats-bar { gap: 20px; }
    .stat-num  { font-size: 22px; }

    .popular-grid { grid-template-columns: 1fr 1fr; }
    .how-grid     { grid-template-columns: 1fr; }
    .blog-grid    { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }

    .status-summary { gap: 14px; }
    .status-stats   { flex-direction: column; }

    .footer-inner   { padding: 0 20px; }
    .footer-nav-wrap { flex-direction: column; gap: 28px; }
    .footer-bottom  { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .popular-grid  { grid-template-columns: 1fr; }
    .filter-bar    { flex-direction: column; align-items: stretch; }
    .filter-bar input { min-width: unset; }
}

/* ----------------------------------------------------------
   21. REDUCED MOTION
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ----------------------------------------------------------
   22. WORDPRESS CORE CLASSES (required)
---------------------------------------------------------- */
.alignleft  { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}
