/* ==========================================================================
   ORÇUN ÇAKAR — EDITORIAL BLOG HUB
   Search Toolbar • Bento Research Grid • Latest Articles List
   ========================================================================== */

/* --- EDITORIAL HERO SECTION --- */
.journal-hero {
    padding: 130px 0 32px;
    border-bottom: 1px solid var(--card-border);
    position: relative;
}

.journal-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.journal-index-badge {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.journal-home-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.journal-home-link:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.journal-hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.journal-hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.65;
    margin-bottom: 32px;
}

/* --- EDITORIAL TOPICS & SEARCH TOOLBAR --- */
.journal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
}

.journal-topic-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 4px 0;
    flex: 1 1 auto;
    min-width: 0;
}

.journal-topic-nav::-webkit-scrollbar {
    display: none;
}

.journal-topic-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.journal-topic-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--card-border);
}

.journal-topic-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.journal-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    padding: 0 20px;
    width: 380px;
    max-width: 420px;
    height: 46px;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.journal-search-box:focus-within {
    border-color: var(--text-primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.16);
}

.journal-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.journal-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.92rem;
    color: var(--text-primary);
    width: 100%;
    height: 100%;
}

.journal-search-input::placeholder {
    color: var(--text-muted);
}

/* --- MAIN & FEATURED ARTICLE (2-COLUMN EDITORIAL) --- */
.journal-main {
    padding: 36px 0 100px;
}

.journal-featured-wrapper {
    margin-bottom: 60px;
}

/* --- BENTO GRID FEATURED RESEARCH --- */
.featured-bento-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    grid-template-rows: auto auto;
    gap: 16px;
    margin-bottom: 64px;
}

.bento-tile {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.bento-tile:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.bento-tile:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* TILE 1: MAIN HERO ARTICLE (Spans 2 rows) */
.bento-tile-main {
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    background: linear-gradient(155deg, var(--bg-secondary) 0%, rgba(var(--primary-rgb), 0.04) 100%);
}

.bento-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.featured-label-badge {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--bg-primary);
    background: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.featured-category-badge {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--primary);
}

.bento-article-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.bento-tile-main:hover .bento-article-title {
    color: var(--primary);
}

.bento-article-summary {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 22px;
}

.bento-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.bento-tag {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.bento-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid var(--card-border);
    gap: 16px;
    flex-wrap: wrap;
}

.bento-meta {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.bento-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.22s ease;
}

.bento-read-btn .arrow-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.bento-tile-main:hover .bento-read-btn .arrow-icon {
    transform: translateX(4px);
}

/* TILE 2: DATA LAB EMPIRICAL VISUAL */
.bento-tile-visual {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.bento-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    padding: 3px 8px;
    border-radius: 4px;
}

.bento-tile-visual .datalab-visual-card {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 16px;
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.datalab-svg-box {
    width: 100%;
    max-width: 290px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.datalab-caption {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-top: 10px;
    text-align: center;
}

/* TILE 3: KEY EMPIRICAL FINDINGS */
.bento-tile-stat {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
}

.bento-stat-item {
    text-align: center;
}

.bento-stat-val {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.bento-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
}

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

.datalab-caption {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 14px;
    text-transform: uppercase;
}

/* --- LATEST ARTICLES SECTION (EDITORIAL NUMBERED LIST) --- */
.journal-latest-section {
    margin-top: 20px;
}

.journal-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 4px;
}

.journal-section-heading {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.journal-section-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.journal-count-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.journal-articles-list {
    display: flex;
    flex-direction: column;
}

.journal-article-item {
    display: grid;
    grid-template-columns: 50px 1fr 140px 36px;
    gap: 24px;
    align-items: center;
    padding: 30px 10px;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
}

.journal-article-item:hover {
    background-color: var(--bg-secondary);
    padding-left: 18px;
    padding-right: 18px;
    border-color: var(--text-muted);
}

.journal-article-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    background-color: var(--bg-secondary);
    padding-left: 18px;
    padding-right: 18px;
}

.article-num {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
}

.article-body-col {
    display: flex;
    flex-direction: column;
}

.article-cat-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.article-item-title {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.journal-article-item:hover .article-item-title {
    color: var(--primary);
}

.article-item-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 10px;
    max-width: 680px;
}

.article-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.article-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-mini-visual {
    width: 100%;
    max-width: 120px;
    height: 64px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: border-color 0.2s ease;
}

.journal-article-item:hover .article-mini-visual {
    border-color: var(--primary);
}

.article-arrow-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.journal-article-item:hover .article-arrow-col {
    transform: translateX(4px);
    color: var(--text-primary);
}

.journal-empty-msg {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- EDITORIAL ARTICLE READER OVERRIDES --- */
.journal-reader-badge {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.meta-separator {
    color: var(--text-muted);
    margin: 0 4px;
}

.journal-reader-article-head {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.journal-reader-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 16px;
}

/* EXECUTIVE SUMMARY CALLOUT */
.journal-executive-summary {
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--primary);
    background: var(--bg-secondary);
    padding: 22px 26px;
    border-radius: 6px;
    margin-bottom: 36px;
}

.summary-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.summary-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.summary-box-body {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.summary-box-body ul {
    margin: 0;
    padding-left: 18px;
}

.summary-box-body li {
    margin-bottom: 6px;
}

/* Breakout images and visualizations */
.blog-image-wrapper {
    margin: 36px -20px;
    text-align: center;
}

.blog-image-caption {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* --- LIGHT THEME EDITORIAL TUNING --- */
.light-theme .journal-hero {
    background: #fbfbfa;
}

.light-theme .journal-toolbar {
    border-top-color: rgba(15, 23, 42, 0.09);
}

.light-theme .journal-topic-btn.active {
    background: #111827;
    color: #ffffff;
}

.light-theme .bento-tile {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.light-theme .bento-tile-main {
    background: linear-gradient(155deg, #ffffff 0%, rgba(109, 40, 217, 0.025) 100%);
}

.light-theme .bento-tile:hover {
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.light-theme .bento-tile-visual .datalab-visual-card {
    background: #f8f9fa;
    border-color: rgba(15, 23, 42, 0.08);
}

.light-theme .bento-tag {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.06);
    color: #475569;
}

.light-theme .bento-stat-divider {
    background: rgba(15, 23, 42, 0.08);
}

.light-theme .journal-article-item {
    border-bottom-color: rgba(15, 23, 42, 0.09);
}

.light-theme .journal-article-item:hover {
    background-color: #f8f9fa;
}

.light-theme .journal-executive-summary {
    background: #f8f9fa;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* --- RESPONSIVE JOURNAL RULES --- */
@media (max-width: 900px) {
    .journal-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .journal-search-box {
        width: 100%;
        max-width: 100%;
    }

    .featured-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .bento-tile-main {
        grid-row: auto;
        padding: 30px 24px;
    }

    .bento-article-title {
        font-size: 1.75rem;
    }

    .bento-tile-stat {
        padding: 20px;
    }
    
    .journal-article-item {
        grid-template-columns: 36px 1fr 30px;
        gap: 16px;
        padding: 24px 8px;
    }
    
    .article-visual-col {
        display: none;
    }

    .journal-hero-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 640px) {
    .journal-hero {
        padding: 100px 0 24px;
    }

    .journal-hero-title {
        font-size: 1.95rem;
    }

    .journal-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-search-box {
        width: 100%;
    }

    .journal-featured-card {
        padding: 20px;
.journal-reader-article-head {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.journal-reader-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 16px;
}

/* EXECUTIVE SUMMARY CALLOUT */
.journal-executive-summary {
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--primary);
    background: var(--bg-secondary);
    padding: 22px 26px;
    border-radius: 6px;
    margin-bottom: 36px;
}

.summary-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.summary-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.summary-box-body {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.summary-box-body ul {
    margin: 0;
    padding-left: 18px;
}

.summary-box-body li {
    margin-bottom: 6px;
}

/* Breakout images and visualizations */
.blog-image-wrapper {
    margin: 36px -20px;
    text-align: center;
}

.blog-image-caption {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* --- LIGHT THEME EDITORIAL TUNING --- */
.light-theme .journal-hero {
    background: #fbfbfa;
}

.light-theme .journal-toolbar {
    border-top-color: rgba(15, 23, 42, 0.09);
}

.light-theme .journal-topic-btn.active {
    background: #111827;
    color: #ffffff;
}

.light-theme .bento-tile {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.light-theme .bento-tile-main {
    background: linear-gradient(155deg, #ffffff 0%, rgba(109, 40, 217, 0.025) 100%);
}

.light-theme .bento-tile:hover {
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.light-theme .bento-tile-visual .datalab-visual-card {
    background: #f8f9fa;
    border-color: rgba(15, 23, 42, 0.08);
}

.light-theme .bento-tag {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.06);
    color: #475569;
}

.light-theme .bento-stat-divider {
    background: rgba(15, 23, 42, 0.08);
}

.light-theme .journal-article-item {
    border-bottom-color: rgba(15, 23, 42, 0.09);
}

.light-theme .journal-article-item:hover {
    background-color: #f8f9fa;
}

.light-theme .journal-executive-summary {
    background: #f8f9fa;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* --- RESPONSIVE JOURNAL RULES --- */
@media (max-width: 900px) {
    .journal-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .journal-search-box {
        width: 100%;
        max-width: 100%;
    }

    .featured-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .bento-tile-main {
        grid-row: auto;
        padding: 30px 24px;
    }

    .bento-article-title {
        font-size: 1.75rem;
    }

    .bento-tile-stat {
        padding: 20px;
    }
    
    .journal-article-item {
        grid-template-columns: 36px 1fr 30px;
        gap: 16px;
        padding: 24px 8px;
    }
    
    .article-visual-col {
        display: none;
    }

    .journal-hero-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 640px) {
    .journal-hero {
        padding: 100px 0 24px;
    }

    .journal-hero-title {
        font-size: 1.95rem;
    }

    .journal-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-search-box {
        width: 100%;
    }

    .journal-featured-card {
        padding: 20px;
    }

    .featured-title {
        font-size: 1.45rem;
    }
}

/* ==========================================================================
   AÇIK TEMA (LIGHT THEME) GÖRSEL İYİLEŞTİRMELERİ
   ========================================================================== */

.light-theme .bento-tile,
.light-theme .journal-featured-card,
.light-theme .journal-article-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.42) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.04), inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95);
}

.light-theme .bento-tile:hover,
.light-theme .journal-featured-card:hover,
.light-theme .journal-article-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.55) 100%);
    border-color: rgba(109, 40, 217, 0.25);
    box-shadow: 0 16px 36px -6px rgba(109, 40, 217, 0.10), inset 0 1.5px 2px 0 rgba(255, 255, 255, 1);
}

/* Premium Light Badge & Tags Styling Override */
.light-theme .blog-card-tag {
    background-color: rgba(8, 145, 178, 0.05);
    color: #0891b2;
    border: 1px solid rgba(8, 145, 178, 0.12);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.light-theme .blog-card:hover .blog-card-tag {
    background-color: rgba(109, 40, 217, 0.06);
    color: #6d28d9;
    border-color: rgba(109, 40, 217, 0.15);
}
