/* =========================
   Clever Techie Home Page
   This file assumes article-base.css is loaded first.
   Header, brand, nav, search, and global width come from article-base.css.
   ========================= */

body {
    background:
        radial-gradient(circle at top center, rgba(23, 216, 197, 0.08), transparent 30%),
        linear-gradient(180deg, #02070c 0%, #07111c 100%);
    color: #e8f0f7;
}

h3 {
    color: #fff;
}

.ct-home-shell {
    width: 100%;
    padding-bottom: 48px;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* =========================
   HOME PANELS
   ========================= */

.ct-panel {
    background: linear-gradient(180deg, rgba(14,25,39,0.95), rgba(10,19,31,0.97));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.ct-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.ct-section-kicker,
.ct-kicker {
    color: #17d8c5;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.ct-panel h2 {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.1;
}

.ct-text-link {
    color: #17d8c5;
    font-weight: 800;
}

.ct-text-link:hover {
    color: #ffffff;
}

/* =========================
   OPTIONAL HOME HERO
   Kept clean for when you re-enable it.
   ========================= */

.ct-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    margin-top: 32px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at 28% 45%, rgba(30,214,255,0.10), transparent 34%),
        radial-gradient(circle at 82% 50%, rgba(23,216,197,0.08), transparent 30%),
        linear-gradient(135deg, #02070c 0%, #07111c 55%, #03080e 100%);
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}

.ct-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(3,10,17,0.92) 0%,
            rgba(3,10,17,0.72) 42%,
            rgba(3,10,17,0.20) 72%,
            rgba(3,10,17,0.04) 100%
        );
    z-index: 2;
    pointer-events: none;
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(3,10,17,0.97) 0%,
            rgba(3,10,17,0.92) 28%,
            rgba(3,10,17,0.78) 48%,
            rgba(3,10,17,0.22) 100%
        ),
        radial-gradient(
            circle at 24% 54%,
            rgba(30,214,255,0.08),
            transparent 34%
        );
}

.ct-hero-content {
    position: relative;
    z-index: 3;
    width: 48%;
    padding: 72px 0 72px 72px;
}

.ct-hero h1 {
    margin: 14px 0 14px;
    font-size: 64px;
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.ct-hero p {
    margin: 0;
    max-width: 560px;
    color: #b7c6d6;
    font-size: 21px;
    line-height: 1.5;
}

.ct-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

.ct-hero-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.ct-hero-mini-links a {
    font-size: 14px;
    font-weight: 700;
    color: #17d8c5;
    opacity: 0.92;
}

.ct-hero-mini-links a:hover {
    color: #ffffff;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid;
    font-weight: 800;
}

.ct-btn-primary {
    background: linear-gradient(180deg, #1ed6ff, #10a8d8);
    border-color: rgba(30,214,255,0.45);
    color: #00121a;
}

.ct-btn-secondary {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    color: #d7e3ee;
}

.ct-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(30,214,255,0.20);
}

.ct-btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #ffffff;
}

/* =========================
   HOME GRID + UTILITY SECTIONS
   ========================= */

.ct-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    margin-top: 28px;
}

.ct-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ct-guide-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255,255,255,0.025);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ct-guide-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30,214,255,0.22);
    background: rgba(30,214,255,0.04);
}

.ct-guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 14px;
    background: rgba(30,214,255,0.10);
    color: #8ee9ff;
    font-weight: 900;
    margin-bottom: 16px;
}

.ct-guide-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.ct-guide-card p {
    margin: 0 0 16px;
    color: #aab8c9;
    line-height: 1.55;
}

.ct-guide-card span {
    color: #17d8c5;
    font-weight: 800;
}

.ct-issue-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.ct-issue-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: #dbe7f1;
    background: rgba(255,255,255,0.025);
    transition: all 0.2s ease;
}

.ct-issue-list a span {
    color: #17d8c5;
    font-weight: 800;
}

.ct-issue-list a:hover {
    color: #fff;
    border-color: rgba(30,214,255,0.22);
}

/* =========================
   LATEST GUIDES
   ========================= */

.ct-latest {
    margin-top: 28px;
}

.ct-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ct-latest-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 22px;
    background: rgba(255,255,255,0.025);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.ct-latest-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--card-accent-rgb), .28);
    background: rgba(var(--card-accent-rgb), .05);
    box-shadow: 0 18px 34px rgba(0,0,0,.18);
}

.ct-home-pill,
.ct-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--card-accent-rgb),0.20);
    background: rgba(var(--card-accent-rgb),0.10);
    color: var(--card-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ct-pill-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.ct-latest-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.18;
}

.ct-latest-card p {
    margin: 0 0 16px;
    color: #a9b9ca;
    line-height: 1.55;
}

.ct-card-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 700;
    color: #8fa3b8;
}

.ct-difficulty-beginner {
    color: #22c55e;
}

.ct-difficulty-intermediate {
    color: #3b82f6;
}

.ct-difficulty-advanced {
    color: #f59e0b;
}

.ct-guides-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 32px;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at 15% 25%, rgba(30,214,255,0.10), transparent 34%),
        linear-gradient(180deg, rgba(14,25,39,0.95), rgba(10,19,31,0.97));
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

/* Guides */
.ct-guides-hero h1 {
    margin: 10px 0 10px;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.ct-guides-hero p {
    margin: 0;
    max-width: 760px;
    color: #aab8c9;
    font-size: 19px;
    line-height: 1.55;
}

.ct-guides-panel {
    margin-top: 0;
}

.ct-empty-state {
    margin: 0;
    color: #aab8c9;
    font-size: 18px;
}

/* Guide Filters */
.ct-guide-filters {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}

.ct-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ct-filter-label {
    margin-right: 4px;
    color: #8fa3b8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #c7d4e1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.ct-filter-pill:hover,
.ct-filter-pill.is-active {
    color: #ffffff;
    border-color: rgba(30,214,255,0.24);
    background: rgba(30,214,255,0.10);
}

.ct-filter-pill[style].is-active,
.ct-filter-pill[style]:hover {
    color: var(--filter-accent);
    border-color: rgba(var(--filter-accent-rgb), 0.28);
    background: rgba(var(--filter-accent-rgb), 0.10);
}

.ct-guides-empty-filter {
    display: none;
    margin: 0;
    color: #aab8c9;
    font-size: 17px;
}

@media (max-width: 800px) {
    .ct-guides-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }

    .ct-guides-hero h1 {
        font-size: 42px;
    }

    .ct-guides-hero p {
        font-size: 17px;
    }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
    .ct-home-grid,
    .ct-card-grid,
    .ct-latest-grid {
        grid-template-columns: 1fr;
    }

    .ct-hero h1 {
        font-size: 52px;
    }
}

@media (max-width: 700px) {
    .ct-hero {
        min-height: auto;
    }

    .ct-hero-content {
        width: 100%;
        padding: 34px 28px;
    }

    .ct-hero h1 {
        font-size: 42px;
    }

    .ct-hero p {
        font-size: 18px;
    }

    .ct-hero-actions {
        flex-direction: column;
    }

    .ct-hero-mini-links {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .ct-panel {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .ct-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ct-latest-card {
        padding: 24px 20px;
    }

    .ct-latest-card h3 {
        font-size: 25px;
        line-height: 1.22;
    }

    .ct-latest-card p {
        font-size: 18px;
    }
}