/* ============================================================
   Cepte Nakliye – blog-detay.css  |  Blog Yazı Sayfası
   ============================================================ */

/* ── MAKALE HERO ────────────────────────────────────────────── */
.article-hero {
    padding: calc(var(--nav-h) + 4rem) clamp(1.25rem, 5vw, 3rem) 0;
    position: relative;
}

.article-hero__inner {
    max-width: 780px;
    margin: 0 auto;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s var(--ease) both;
}

.article-cat {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    background: var(--title);
    color: var(--white);
}

.article-date,
.article-read {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--mid);
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-date::before {
    content: '📅';
    font-size: 0.75rem;
}

.article-read::before {
    content: '⏱';
    font-size: 0.75rem;
}

.article-hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    color: var(--title);
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.6s 0.1s var(--ease) both;
}

.article-hero__lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text);
    opacity: 0.88;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    animation: fadeUp 0.6s 0.15s var(--ease) both;
}

.article-hero__author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(13, 45, 90, 0.09);
    border-bottom: 1px solid rgba(13, 45, 90, 0.09);
    animation: fadeUp 0.6s 0.2s var(--ease) both;
    margin-bottom: 0;
}

.article-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--mid), var(--title));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--white);
}

.article-author-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--title);
}

.article-author-role {
    font-size: 0.76rem;
    color: var(--mid);
    margin-top: 1px;
}

/* ── ÖZELLIK GÖRSELİ ────────────────────────────────────────── */
.article-thumb {
    max-width: 780px;
    margin: 2rem auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, #a8c8e8 100%);
    height: clamp(200px, 35vw, 360px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 10vw, 8rem);
    animation: fadeUp 0.7s 0.25s var(--ease) both;
    box-shadow: 0 16px 48px var(--shadow);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── İÇERİK + SIDEBAR LAYOUT ────────────────────────────────── */
.article-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 3rem clamp(1.25rem, 5vw, 3rem) 5rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3.5rem;
    align-items: flex-start;
}

/* ── MAKALE İÇERİĞİ ─────────────────────────────────────────── */
.article-body {
    min-width: 0;
}

.article-content {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--text);
    line-height: 1.9;
}

.article-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: var(--title);
    letter-spacing: -0.02em;
    margin: 2.5rem 0 0.85rem;
    line-height: 1.25;
}

.article-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--title);
    margin: 2rem 0 0.65rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin: 0.5rem 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    line-height: 1.75;
}

.article-content strong {
    font-weight: 700;
    color: var(--title);
}

.article-content em {
    font-style: italic;
}

.article-content a {
    color: var(--mid);
    border-bottom: 1px solid rgba(59, 120, 196, 0.35);
    transition: border-color 0.2s, color 0.2s;
}

.article-content a:hover {
    color: var(--title);
    border-color: var(--title);
}

/* Alıntı bloğu */
.article-content blockquote {
    border-left: 4px solid var(--mid);
    background: rgba(13, 45, 90, 0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--title);
    line-height: 1.7;
}

/* Bilgi kutusu */
.article-content .info-box {
    background: rgba(13, 45, 90, 0.05);
    border: 1px solid rgba(13, 45, 90, 0.12);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0;
}

.article-content .info-box strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

/* Kod / teknik metin */
.article-content code {
    font-family: monospace;
    font-size: 0.88em;
    background: rgba(13, 45, 90, 0.07);
    padding: 2px 7px;
    border-radius: 5px;
    color: var(--title);
}

/* Bölüm ayracı */
.article-content hr {
    border: none;
    border-top: 1px solid rgba(13, 45, 90, 0.1);
    margin: 2.5rem 0;
}

/* ── PAYLAŞ + ETİKETLER ─────────────────────────────────────── */
.article-footer {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(13, 45, 90, 0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.74rem;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(13, 45, 90, 0.07);
    color: var(--dark);
    transition: background 0.2s, color 0.2s;
    cursor: default;
}

.article-tag:hover {
    background: var(--title);
    color: var(--white);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-share-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--mid);
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 45, 90, 0.07);
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.share-btn:hover {
    background: var(--title);
    color: var(--white);
    transform: scale(1.1);
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.article-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-light);
    border: 1px solid rgba(13, 45, 90, 0.10);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
}

.sidebar-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--title);
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(13, 45, 90, 0.09);
}

/* İlgili yazılar */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-post {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-decoration: none;
    transition: transform 0.2s;
}

.sidebar-post:hover {
    transform: translateX(4px);
}

.sidebar-post__icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bg), #b0ccee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sidebar-post__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--title);
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.sidebar-post__meta {
    font-size: 0.7rem;
    color: var(--mid);
    opacity: 0.8;
}

/* WA CTA */
.sidebar-wa {
    background: #075E54;
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-wa::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 16px);
}

.sidebar-wa__inner {
    position: relative;
    z-index: 1;
}

.sidebar-wa h4 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.sidebar-wa p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.sidebar-wa .btn--whatsapp {
    width: 100%;
    justify-content: center;
    background: var(--whatsapp);
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
}

/* İçindekiler */
.toc {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    opacity: 0.78;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}

.toc a:hover,
.toc a.active {
    color: var(--title);
    opacity: 1;
    border-color: var(--mid);
}

/* ── ÖNCEKİ / SONRAKİ YAZI ──────────────────────────────────── */
.article-nav {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem) 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.article-nav-card {
    background: var(--bg-light);
    border: 1px solid rgba(13, 45, 90, 0.10);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    text-decoration: none;
}

.article-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--shadow);
}

.article-nav-card--next {
    text-align: right;
}

.article-nav-card__dir {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 0.4rem;
}

.article-nav-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--title);
    line-height: 1.4;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-footer {
        flex-direction: column;
    }

    .article-thumb {
        height: 180px;
        font-size: 3.5rem;
    }
}