/* =========================================================
   THETEJBLOGS 2.0 — CATEGORY STYLESHEET (/Category/category.css)
   - Uniform Fixed-Ratio Symmetrical Solid Glass Cards
   - Static Stability (Zero hover transform or image zoom)
   - Full Uncropped 16:9 Flush Aspect Images
   - Big BOLD "ARTICLES" Title, Zero Dots, No Divider Lines
   ========================================================= */

:root {
    --bg-dark: #03060a;
    --text-pure: #f8fafc;
    --text-muted: rgba(235, 240, 242, 0.7);
    --text-faint: rgba(235, 240, 242, 0.45);
    
    /* Solid High-Grade Glass (Not washed out) */
    --glass-bg: rgba(9, 17, 24, 0.92);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(154, 230, 180, 0.45);
    
    --accent-teal: #9ae6b4;
    --accent-cyan: #00d2ff;

    --font-sans: "DM Sans", sans-serif;
    --font-display: "Manrope", sans-serif;
    --font-serif: "Playfair Display", serif;
    --font-mono: "JetBrains Mono", monospace;

    --container-max: 1280px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--text-pure);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.category-page-wrapper {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), var(--container-max));
    margin: 0 auto;
    padding: 135px 0 100px; /* Offset to prevent navbar overlap */
}

/* =========================================================
   01. HERO SECTION (NO DIVIDER LINES)
   ========================================================= */
.category-hero-section {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: none;
}

.category-hero-inner {
    max-width: 850px;
}

.category-welcome-kicker {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(19px, 2vw, 24px);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.category-page-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 18px;
}

.category-title-italic {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--accent-teal);
}

.category-page-description {
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 680px;
}

/* =========================================================
   02. ARTICLES HEADER BAR (BIG TITLE, NO DOT, NO LINE)
   ========================================================= */
.category-articles-section {
    margin-top: 10px;
}

.articles-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

.articles-section-heading {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

.articles-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 1px;
}

/* =========================================================
   03. UNIFORM SYMMETRICAL CARDS (FULL FLUSH IMAGE)
   ========================================================= */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    align-items: stretch;
}

.category-cards-grid:has(.category-empty-container),
.category-cards-grid.category-empty-active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0 10px;
}

.category-glass-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-glass-card:hover {
    transform: none !important;
    border-color: var(--glass-hover-border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(154, 230, 180, 0.15);
}

/* Clean 16:9 Image Wrapper (No Height Distortion) */
.card-media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: #020508;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none !important;
    transform: none !important;
}

/* Gradient overlay permanently disabled so image is sharp */
.card-media-gradient {
    display: none !important;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(3, 6, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 9px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent-teal);
    text-transform: uppercase;
    z-index: 3;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background: rgba(4, 9, 13, 0.3);
}

.card-meta-row {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.card-meta-row .date-updated {
    color: var(--accent-teal);
    font-weight: 700;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.7vw, 21px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 12px;
    height: auto;
    transition: color 0.2s ease;
}

.category-glass-card:hover .card-title {
    color: var(--accent-teal);
}

.card-excerpt {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.card-footer-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-pure);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.cta-arrow {
    font-size: 13px;
    color: var(--accent-teal);
    transition: transform 0.2s ease;
}

.category-glass-card:hover .cta-arrow {
    transform: translate(3px, -3px);
}

/* =========================================================
   04. RESPONSIVE HOOKS
   ========================================================= */
@media (max-width: 860px) {
    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .category-page-wrapper {
        width: calc(100% - 32px);
        padding: 105px 0 60px;
    }

    .category-hero-section {
        padding: 10px 0 20px;
    }

    .category-page-title {
        font-size: clamp(34px, 10vw, 46px);
    }

    .card-body {
        padding: 20px 16px;
    }
}