/**
 * Temajet Makaleler & Köşe Yazarları Sistemi (2026 Core Web Vitals & E-E-A-T)
 *
 * 1. 16:9 Kusursuz Aspect-Ratio (0 CLS Garantisi)
 * 2. 1:1 Bağımsız Yazar Portresi
 * 3. Yatay Grid & Dikey Liste Formatları
 * 4. Yazar İmza Kutusu (Author Bio Box)
 * 5. Yazar Profil & Arşiv Şablonları
 */

:root {
    --jet-kose-primary: #e11d48;
    --jet-kose-text: #0f172a;
    --jet-kose-muted: #64748b;
    --jet-kose-border: #e2e8f0;
    --jet-kose-card-bg: #ffffff;
    --jet-kose-radius: 12px;
}

/* ==========================================================================
   1. GENEL MODÜL KAPSAYICI & BAŞLIK
   ========================================================================== */
.jet-kose-section {
    margin-top: 32px;
    margin-bottom: 36px;
    position: relative;
}

.jet-kose-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jet-kose-border);
}

.jet-kose-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--jet-kose-text);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.jet-kose-header-title i {
    color: var(--jet-kose-primary);
    font-size: 18px;
}

.jet-kose-view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--jet-kose-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.jet-kose-view-all-link:hover {
    color: #be123c;
    transform: translateX(3px);
}

/* ==========================================================================
   2. YATAY AKIŞ (HORIZONTAL GRID / SLIDER CARDS)
   ========================================================================== */
.jet-kose-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 1024px) {
    .jet-kose-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .jet-kose-grid-horizontal {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.jet-kose-card {
    background: var(--jet-kose-card-bg);
    border-radius: var(--jet-kose-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--jet-kose-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.jet-kose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* 16:9 Cover Image Box (Zero CLS) */
.jet-kose-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.jet-kose-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jet-kose-card:hover .jet-kose-thumb-img {
    transform: scale(1.05);
}

.jet-kose-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.jet-kose-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--jet-kose-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 2;
}

/* 1:1 Author Avatar Floating */
.jet-kose-avatar-badge {
    position: absolute;
    bottom: -22px;
    right: 18px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 3;
    background: #ffffff;
}

.jet-kose-avatar-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
}

/* Card Body */
.jet-kose-card-body {
    padding: 24px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.jet-kose-author-info {
    margin-bottom: 10px;
}

.jet-kose-author-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--jet-kose-primary);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.jet-kose-author-name:hover {
    color: #9f1239;
}

.jet-kose-author-title {
    font-size: 12px;
    color: var(--jet-kose-muted);
    font-weight: 500;
    margin-top: 2px;
}

.jet-kose-article-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--jet-kose-text);
    margin: 4px 0 8px;
}

.jet-kose-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jet-kose-article-title a:hover {
    color: var(--jet-kose-primary);
}

.jet-kose-article-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jet-kose-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--jet-kose-muted);
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.jet-kose-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   3. DİKEY AKIŞ (VERTICAL SIDEBAR LIST)
   ========================================================================== */
.jet-kose-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jet-kose-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--jet-kose-border);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.jet-kose-list-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.jet-kose-list-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--jet-kose-primary);
    aspect-ratio: 1 / 1;
}

.jet-kose-list-content {
    flex-grow: 1;
    overflow: hidden;
}

.jet-kose-list-author {
    font-size: 13px;
    font-weight: 800;
    color: var(--jet-kose-primary);
    margin-bottom: 2px;
}

.jet-kose-list-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--jet-kose-text);
    line-height: 1.35;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jet-kose-list-meta {
    font-size: 11px;
    color: var(--jet-kose-muted);
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   4. YAZAR İMZA KUTUSU (AUTHOR BIO BOX - AT BOTTOM OF ARTICLE)
   ========================================================================== */
.jet-author-signature-box {
    margin-top: 36px;
    margin-bottom: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.jet-asb-inner {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .jet-asb-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.jet-asb-avatar-wrap {
    flex-shrink: 0;
}

.jet-asb-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--jet-kose-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
}

.jet-asb-content {
    flex-grow: 1;
}

.jet-asb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .jet-asb-header {
        flex-direction: column;
        align-items: center;
        margin-bottom: 12px;
    }
}

.jet-asb-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--jet-kose-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 2px;
}

.jet-asb-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--jet-kose-text);
    margin: 0;
}

.jet-asb-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.jet-asb-name a:hover {
    color: var(--jet-kose-primary);
}

.jet-asb-title {
    font-size: 13px;
    color: var(--jet-kose-muted);
    font-weight: 600;
    margin-top: 2px;
}

.jet-asb-socials {
    display: flex;
    gap: 8px;
}

.jet-asb-social {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.jet-asb-social:hover {
    background: var(--jet-kose-primary);
    border-color: var(--jet-kose-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.jet-asb-bio {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 10px 0 16px;
}

.jet-asb-footer {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .jet-asb-footer {
        justify-content: center;
    }
}

.jet-asb-all-posts-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jet-kose-primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.jet-asb-all-posts-btn:hover {
    background: #be123c;
    color: #ffffff;
    transform: translateX(3px);
}

/* ==========================================================================
   5. SINGLE MAKALE DETAY SAYFASI ÖZEL STİLLERİ
   ========================================================================== */
.jet-single-makale-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.jet-single-makale-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    display: block;
}

.jet-makale-author-header-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 22px;
}

.jet-mah-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--jet-kose-primary);
}

.jet-mah-info {
    flex-grow: 1;
}

.jet-mah-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--jet-kose-text);
    text-decoration: none;
}

.jet-mah-name:hover {
    color: var(--jet-kose-primary);
}

.jet-mah-title {
    font-size: 12px;
    color: var(--jet-kose-muted);
}

.jet-mah-meta {
    font-size: 12px;
    color: var(--jet-kose-muted);
    display: flex;
    gap: 14px;
}

/* ==========================================================================
   6. SINGLE YAZAR DETAY SAYFASI (YAZAR PROFİL KARTI)
   ========================================================================== */
.jet-yazar-profile-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 36px 32px;
    color: #ffffff;
    margin-bottom: 36px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.jet-yph-inner {
    display: flex;
    gap: 28px;
    align-items: center;
}

@media (max-width: 768px) {
    .jet-yph-inner {
        flex-direction: column;
        text-align: center;
    }
}

.jet-yph-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    aspect-ratio: 1 / 1;
}

.jet-yph-content {
    flex-grow: 1;
}

.jet-yph-label {
    background: var(--jet-kose-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.jet-yph-name {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 4px;
}

.jet-yph-title {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 12px;
}

.jet-yph-bio {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 800px;
}

.jet-yph-socials {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .jet-yph-socials {
        justify-content: center;
    }
}

.jet-yph-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.jet-yph-social-btn:hover {
    background: var(--jet-kose-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   7. KOYU MOD (DARK MODE) UYUMU
   ========================================================================== */
body.dark-mode .jet-kose-card,
body.dark-mode .jet-kose-list-item,
body.dark-mode .jet-author-signature-box,
body.dark-mode .jet-makale-author-header-bar {
    background: #18181b;
    border-color: #27272a;
}

body.dark-mode .jet-kose-header-title,
body.dark-mode .jet-kose-article-title,
body.dark-mode .jet-asb-name,
body.dark-mode .jet-mah-name {
    color: #f8fafc;
}

body.dark-mode .jet-kose-article-excerpt,
body.dark-mode .jet-asb-bio {
    color: #cbd5e1;
}

body.dark-mode .jet-kose-header,
body.dark-mode .jet-kose-card-footer {
    border-color: #27272a;
}
