/*
Theme Name:  Journallo Child
Template:    kadence
Description: Journallo City Intelligence Network — child theme for Kadence
Version:     1.0
*/

/* ==========================================================================
   CITY PAGE
   ========================================================================== */

.journallo-city-page {
    width: 100%;
}

/* Hero */
.city-hero {
    position: relative;
    height: 340px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.city-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.city-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 32px 28px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.city-hero-left {
    flex: 1;
}

.city-eyebrow {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.city-hero-title {
    font-size: 30px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.5px;
}

.city-hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    max-width: 460px;
    margin-bottom: 16px;
}

/* Writer pills on hero */
.city-writers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.writer-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.14);
    border: 0.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    padding: 3px 10px 3px 3px;
}

.writer-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 500;
}

.writer-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

/* Writer avatar colors */
.writer-teal   .writer-av { background: #E1F5EE; color: #0F6E56; }
.writer-purple .writer-av { background: #EEEDFE; color: #534AB7; }
.writer-coral  .writer-av { background: #FAECE7; color: #993C1D; }
.writer-amber  .writer-av { background: #FAEEDA; color: #854F0B; }
.writer-blue   .writer-av { background: #E6F1FB; color: #185FA5; }
.writer-pink   .writer-av { background: #FBEAF0; color: #993556; }
.writer-green  .writer-av { background: #EAF3DE; color: #3B6D11; }
.writer-gray   .writer-av { background: #F1EFE8; color: #5F5E5A; }

/* Hero stats */
.city-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: right;
    min-width: 90px;
}

.stat-num {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    display: block;
}

/* Rubrieken grid */
.city-rubrieken,
.city-recent {
    padding: 28px 32px;
}

.rub-section-label {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.rub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.rub-card {
    background: #fff;
    border: 0.5px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    display: block;
    transition: border-color 0.12s, background 0.12s;
}

.rub-card:hover {
    border-color: #bbb;
    background: #f9f9f9;
    text-decoration: none;
}

/* Rubriek left-border accent per color */
.rub-teal   { border-left: 3px solid #1D9E75; }
.rub-amber  { border-left: 3px solid #EF9F27; }
.rub-purple { border-left: 3px solid #7F77DD; }
.rub-coral  { border-left: 3px solid #D85A30; }
.rub-blue   { border-left: 3px solid #378ADD; }
.rub-pink   { border-left: 3px solid #D4537E; }
.rub-green  { border-left: 3px solid #639922; }
.rub-gray   { border-left: 3px solid #888780; }

.rub-name {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    margin-bottom: 3px;
}

.rub-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}

.rub-count {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
}

/* Recent articles grid */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.recent-card {
    border: 0.5px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: border-color 0.12s;
}

.recent-card:hover {
    border-color: #bbb;
    text-decoration: none;
}

.recent-img {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.recent-body {
    padding: 10px 12px;
}

.recent-rub {
    font-size: 10px;
    font-weight: 500;
    color: #0F6E56;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.recent-title {
    font-size: 12px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-author {
    font-size: 11px;
    color: #aaa;
}


/* ==========================================================================
   ARCHIVE PAGE (rubriek)
   ========================================================================== */

.journallo-archive {
    width: 100%;
}

.archive-header {
    padding: 28px 32px 20px;
    border-bottom: 0.5px solid #e5e5e5;
}

.archive-eyebrow {
    font-size: 11px;
    font-weight: 500;
    color: #0F6E56;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
}

.archive-eyebrow:hover {
    text-decoration: underline;
}

.archive-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.archive-title {
    font-size: 26px !important;
    font-weight: 500 !important;
    color: #111 !important;
    margin-bottom: 6px !important;
}

.archive-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 520px;
    margin: 0;
}

.archive-count {
    font-size: 13px;
    color: #aaa;
    flex-shrink: 0;
    padding-top: 6px;
}

/* Main layout: articles + sidebar */
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 32px;
    padding: 0 32px 48px;
    align-items: start;
}

.archive-main {
    padding-top: 4px;
}

/* Article rows */
.article-row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 0.5px solid #e5e5e5;
    text-decoration: none;
    align-items: flex-start;
}

.article-row:hover .art-title {
    color: #1D9E75;
}

.article-row:hover {
    text-decoration: none;
}

.art-img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.art-body {
    flex: 1;
    min-width: 0;
}

.art-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.art-author {
    font-size: 12px;
    color: #666;
}

.art-dot {
    font-size: 10px;
    color: #ccc;
}

.art-date {
    font-size: 12px;
    color: #aaa;
}

.art-title {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.1s;
}

.art-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.art-read {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

.archive-empty {
    padding: 32px 0;
    color: #aaa;
    font-size: 14px;
}

/* Sidebar */
.archive-sidebar {
    padding-top: 20px;
    position: sticky;
    top: 80px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 500;
    color: #aaa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sidebar-link {
    display: block;
    font-size: 13px;
    color: #666;
    padding: 5px 0;
    border-bottom: 0.5px solid #e5e5e5;
    text-decoration: none;
    transition: color 0.1s;
}

.sidebar-link:hover {
    color: #111;
    text-decoration: none;
}

.sidebar-link.active {
    color: #1D9E75;
    font-weight: 500;
}

.sidebar-writer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.sidebar-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Sidebar avatar colors */
.sidebar-av-teal   { background: #E1F5EE; color: #0F6E56; }
.sidebar-av-purple { background: #EEEDFE; color: #534AB7; }
.sidebar-av-coral  { background: #FAECE7; color: #993C1D; }
.sidebar-av-amber  { background: #FAEEDA; color: #854F0B; }
.sidebar-av-blue   { background: #E6F1FB; color: #185FA5; }
.sidebar-av-pink   { background: #FBEAF0; color: #993556; }
.sidebar-av-green  { background: #EAF3DE; color: #3B6D11; }
.sidebar-av-gray   { background: #F1EFE8; color: #5F5E5A; }

.sidebar-writer-name {
    font-size: 12px;
    color: #666;
}


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

@media (max-width: 900px) {
    .rub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .archive-layout {
        grid-template-columns: 1fr;
    }
    .archive-sidebar {
        display: none;
    }
    .city-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 20px;
    }
    .city-hero-stats {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .city-hero {
        height: 400px;
    }
    .city-hero-content,
    .city-rubrieken,
    .city-recent,
    .archive-header,
    .archive-layout {
        padding-left: 16px;
        padding-right: 16px;
    }
    .rub-grid {
        grid-template-columns: 1fr 1fr;
    }
    .recent-grid {
        grid-template-columns: 1fr;
    }
    .city-hero-title {
        font-size: 24px !important;
    }
}
