/* ==========================================================================
   1. GLOBAL DEĞİŞKENLER (CSS VARS)
   ========================================================================== */
:root {
    /* Tipografi */
    --font-main: "Hanken Grotesk", sans-serif;

    /* Ortak Renkler & Efektler */
    --color-dark-accent: #0e0e12;
    --border-light: #e5e7eb;
    --border-gray: #d1d5db;
    --bg-gray-light: #f3f4f6;
    --text-dark: #111827;
    --text-heading: #1f2937;
    --text-muted-gray: #374151;

    /* Profil & Yazar Kartı Conic Gradient Tanımları */
    --gradient-gold: conic-gradient(from 140deg, var(--accent), #9f8230, #d4b454, var(--accent));
    --gradient-red: conic-gradient(from 140deg, var(--accent), #9f3030, #d45454, var(--accent));
    --shadow-accent: 0 14px 28px -10px rgba(190, 158, 58, 0.42);
    --shadow-accent-subtle: 0 8px 20px rgba(190, 158, 58, 0.22);
}

/* ==========================================================================
   2. MAKALE / HABER METİN ALANLARI (.article-text)
   ========================================================================== */
.article-text img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
.article-text iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 14px;
    margin: 26px 0;
    display: block;
}
.article-text ol {
    margin: 0 0 22px;
    padding-left: 22px;
    list-style: decimal;
}
.article-text ol li {
    margin: 8px 0;
}
.article-text ol li::marker {
    color: var(--accent);
    font-weight: 700;
}
.article-text h4 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    color: var(--ink);
    margin: 24px 0 10px;
}
.article-text strong {
    color: var(--ink);
    font-weight: 700;
}
.article-text p {
    margin: 0 0 22px;
}

/* Form Elemanları Grid & Input */
.cf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.cf-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-main);
    font-size: 15px;
}
.cf-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Hafif / Lite İçerik Görsel & Input Sınırlamaları */
#liteArticleContent img,
#liteArticleContent input {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: auto !important;
}

/* ==========================================================================
   3. YAZAR PROFİL HERO ALANI (.prof-hero)
   ========================================================================== */
.prof-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    width: 100%;
    text-align: left;
}
.prof-ph {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-gold);
    box-shadow: var(--shadow-accent);
}
.prof-ph img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--paper);
    background: var(--line-2);
}
.prof-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    width: 100%;
}
.prof-name {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.022em;
    color: var(--ink);
    margin: 0;
    line-height: 1.05;
    text-decoration: none;
}
.prof-bio {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: -0.003em;
    max-width: 760px;
    margin: 0;
}
.prof-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
    justify-content: flex-start;
}
.prof-meta .stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 13.5px;
    color: var(--ink-2);
    font-weight: 600;
}
.prof-meta a.stat {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.prof-meta a.stat:hover b {
    color: var(--ink);
}
.prof-meta .stat b {
    color: var(--accent);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.prof-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--subtle);
}
.prof-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    justify-content: flex-start;
}
.prof-socials a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: all 0.22s;
    text-decoration: none;
}
.prof-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--color-dark-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(190, 158, 58, 0.25);
}
.prof-socials svg {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   4. BAŞLIK VE KANAT YAZI DÜZENİ (.article-title / .yazi-layout)
   ========================================================================== */
.article-title {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 12px;
}
.article-subline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-main);
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 500;
    margin: 0 0 24px;
}
.article-subline .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.yazi-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
.yazi-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.yazi {
    display: flex;
    align-items: stretch;
    gap: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yazi:hover {
    background: var(--night-2);
    border-color: var(--line-2);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -16px rgba(15, 15, 30, 0.14);
}
.yazi .thumb {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.yazi .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yazi:hover .thumb img {
    transform: scale(1.06);
}
.yazi .body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}
.yazi .cat {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.yazi .cat::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.yazi h3 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.28;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yazi:hover h3 {
    color: var(--accent);
}
.yazi p {
    font-family: var(--font-main);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: -0.003em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yazi .meta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.yazi .meta::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Yan Blok Sağ Listeleme (.other-side) */
.other-side {
    position: sticky;
    top: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 16px;
    box-shadow: 0 4px 14px -6px rgba(15, 15, 30, 0.08);
}
.other-side .ttl {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 14px;
    border-bottom: 1px solid var(--line);
}
.other-side .ttl::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.other-side ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.other-side a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 10px;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.22s, transform 0.22s;
}
.other-side a:hover {
    background: var(--night-2);
    transform: translateX(2px);
}
.other-side .ph {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--line-2);
}
.other-side .ph img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}
.other-side .info {
    flex: 1;
    min-width: 0;
}
.other-side .nm {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.other-side .role {
    display: block;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 5px;
}
.other-side a:hover .nm {
    color: var(--accent);
}

.side-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--night-2);
    border: 1px solid var(--line);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.22s;
}
.side-all:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--color-dark-accent);
    transform: translateY(-1px);
}
.side-all svg {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   5. YAZARLAR GRID / KART LİSTESİ (.authors-grid)
   ========================================================================== */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.author-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
}
.author-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), #9f3030);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.author-card:hover {
    background: var(--night-2);
    border-color: var(--line-2);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -18px rgba(15, 15, 30, 0.18);
}
.author-card:hover::before {
    transform: scaleY(1);
}
.author-card .head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    text-align: left;
}
.author-card .ph {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-red);
    box-shadow: var(--shadow-accent-subtle);
}
.author-card .ph img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--paper);
    background: var(--line-2);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.author-card:hover .ph img {
    transform: scale(1.06);
}
.author-card .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 5px;
    min-width: 0;
}
.author-card .nm {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.1;
    text-decoration: none;
    text-align: left;
}
.author-card a.nm:hover {
    color: var(--accent);
}
.author-card .info .socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}
.author-card .info .socials a {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--night-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: all 0.22s;
}
.author-card .info .socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--color-dark-accent);
    transform: translateY(-2px);
}
.author-card .info .socials svg {
    width: 13px;
    height: 13px;
}
.author-card .about,
.author-card .last {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 7px;
    width: 100%;
}
.author-card .about .lbl,
.author-card .last .lbl {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: left;
}
.author-card .about .lbl::before,
.author-card .last .lbl::before {
    content: "";
    width: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.author-card .bio {
    font-family: var(--font-main);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: -0.003em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    text-align: left;
}
.author-card .last {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.author-card:hover .last {
    border-top-color: var(--line-2);
}
.author-card .last .title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.36;
    color: var(--ink);
    letter-spacing: -0.008em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    text-decoration: none;
    text-align: left;
}
.author-card a.title:hover,
.author-card:hover .last .title {
    color: var(--accent);
}

/* ==========================================================================
   6. ARAMA SAYFASI ELEMANLARI
   ========================================================================== */
.search-container { 
    max-width: 1480px; 
    margin: 40px auto; 
    padding: 0 20px; 
}
.search-title { 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 24px; 
    border-bottom: 2px solid var(--border-light); 
    padding-bottom: 12px; 
}
.search-section { 
    margin-top: 40px; 
    margin-bottom: 40px; 
}
.search-section h3 { 
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 16px; 
    color: var(--text-heading); 
}

/* Arama Haber Grid Yapısı */
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
}
.news-card { 
    border: 1px solid var(--border-light); 
    border-radius: 8px; 
    overflow: hidden; 
    background: #fff; 
    transition: transform 0.2s; 
}
.news-card:hover { 
    transform: translateY(-4px); 
}
.news-card img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
}
.news-card-body { 
    padding: 15px; 
}
.news-card-title { 
    font-size: 16px; 
    font-weight: 700; 
    line-height: 1.4; 
    margin-bottom: 8px; 
    color: var(--text-dark); 
}

/* Kategori Rozetleri */
.cat-badges { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.cat-badge { 
    background: var(--bg-gray-light); 
    color: var(--text-muted-gray); 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-weight: 600; 
    text-decoration: none; 
    border: 1px solid var(--border-gray); 
}
.cat-badge:hover { 
    background: #000; 
    color: #fff; 
}

/* Arama Yazarlar / Makaleler */
.writer-search-card { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px; 
    border: 1px solid var(--border-light); 
    border-radius: 8px; 
    background: #fff; 
    text-decoration: none; 
    color: inherit; 
}
.writer-search-card img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    object-fit: cover; 
}

/* ==========================================================================
   7. MEDYA SORGULARI (RESPONSIVE MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1023px) {
    .yazi-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .other-side {
        position: static;
    }
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .prof-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    .prof-body {
        align-items: center;
        text-align: center;
    }
    .prof-meta,
    .prof-socials {
        justify-content: center;
    }
    .prof-ph {
        width: 108px;
        height: 108px;
    }
    .prof-name {
        font-size: 28px;
    }
}

@media (max-width: 639px) {
    .cf-grid {
        grid-template-columns: 1fr;
    }
    .yazi {
        flex-direction: column;
        gap: 14px;
    }
    .yazi .thumb {
        width: 100%;
        aspect-ratio: 16/9;
    }
    .yazi h3 {
        font-size: 18px;
    }
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .author-card {
        padding: 20px;
    }
    .author-card .nm {
        font-size: 18px;
    }
    .author-card .ph {
        width: 72px;
        height: 72px;
    }
}