/**
 * DC Haber - Yazarlar ve Köşe Yazıları Modülü Stilleri
 * WordPress Tema Standartlarına Uygun Modüler CSS
 */

/* 1. YAZARLAR SAYFASI TABS */
.dchaber-yazarlar-page {
    margin-top: 15px;
    margin-bottom: 30px;
}

.dchaber-yazar-tabs {
    clear: both !important;
    float: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid #e5e7eb !important;
    padding-bottom: 15px !important;
    flex-wrap: wrap !important;
}

.dchaber-tab-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.dchaber-tab-btn:hover {
    background: #edf2f7;
    color: #1e293b;
    border-color: #94a3b8;
}

.dchaber-tab-btn.active {
    background: #b70002 !important;
    color: #fff !important;
    border-color: #b70002 !important;
    box-shadow: 0 4px 10px rgba(183, 0, 2, 0.25);
}

.dchaber-tab-btn .tab-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.dchaber-tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.tab-badge-green { background: #dcfce7 !important; color: #166534 !important; }
.tab-badge-blue  { background: #dbeafe !important; color: #1e40af !important; }

/* 2. SEKME GİZLEME / GÖSTERME */
.dchaber-tab-pane {
    display: none !important;
}

.dchaber-tab-pane.active {
    display: block !important;
    animation: dchaberFadeIn 0.35s ease;
}

@keyframes dchaberFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 3. YAZAR KARTLARI IZGARASI */
.dchaber-authors-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)) !important;
    gap: 20px;
    margin-bottom: 30px;
}

.dchaber-empty-tab {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

/* 4. YAZAR KARTI */
.dchaber-author-card {
    background: #fff !important;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.dchaber-author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

.dchaber-author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.card-kose::before  { background: #b70002; }
.card-genc::before  { background: #16a34a; }
.card-haber::before { background: #2563eb; }

.author-card-header {
    display: flex !important;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.author-card-avatar {
    flex-shrink: 0;
}

.author-card-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #f1f5f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: block;
}

.author-card-info {
    flex-grow: 1;
}

.author-card-info .kose-title {
    margin: 4px 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #b70002;
    line-height: 1.3;
}

.card-genc .author-card-info .kose-title {
    color: #16a34a;
}

.author-card-info .author-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.author-card-info .author-name a {
    color: #0f172a;
    text-decoration: none;
}

.author-card-info .author-name a:hover {
    color: #b70002;
}

.author-card-info .author-title {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* 5. ROZETLER */
.badge-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.badge-kose { background: #fee2e2; color: #991b1b; }
.badge-genc { background: #dcfce7; color: #166534; }
.badge-haber{ background: #dbeafe; color: #1e40af; }

.dchaber-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.dchaber-badge-kose { background: #fee2e2; color: #991b1b; }
.dchaber-badge-genc { background: #dcfce7; color: #166534; }
.dchaber-badge-haber{ background: #dbeafe; color: #1e40af; }

/* 6. SON YAZI KUTUSU */
.author-latest-post {
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    border-radius: 0 6px 6px 0;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.card-kose .author-latest-post { border-left-color: #b70002; }
.card-genc .author-latest-post { border-left-color: #16a34a; }
.card-haber .author-latest-post{ border-left-color: #2563eb; }

.author-latest-post .latest-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.author-latest-post .latest-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 4px;
}

.author-latest-post .latest-title:hover {
    color: #b70002;
}

.author-latest-post .latest-date {
    font-size: 11px;
    color: #94a3b8;
}

.author-bio {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* 7. KART ALTI (FOOTER) */
.author-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.author-socials {
    display: flex;
    gap: 6px;
}

.soc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff !important;
    text-decoration: none;
}

.soc-tw { background: #000; }
.soc-ig { background: #e1306c; }
.soc-fb { background: #1877f2; }
.soc-li { background: #0a66c2; }
.soc-icon:hover { opacity: 0.85; }

.author-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-count-badge {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 10px;
}

.all-posts-btn {
    font-size: 12px;
    font-weight: 700;
    color: #b70002;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.all-posts-btn:hover {
    color: #8b0000;
    text-decoration: underline;
}

/* 8. TEKİL YAZI (SINGLE.PHP) ŞERİT VE BİYOGRAFİ KUTUSU */
.dchaber-columnist-single-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #b70002;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.dchaber-columnist-single-header.genc_kose_yazari {
    border-left-color: #16a34a;
}

.dchaber-columnist-single-header .columnist-avatar img {
    width: 65px;
    height: 65px;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #f1f5f9;
}

.columnist-meta .columnist-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.columnist-meta .columnist-kose {
    font-size: 14px;
    font-weight: 700;
    color: #b70002;
}

.dchaber-columnist-single-header.genc_kose_yazari .columnist-kose {
    color: #16a34a;
}

.columnist-meta .columnist-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.columnist-meta .columnist-name a {
    color: #0f172a;
    text-decoration: none;
}

.columnist-meta .columnist-title {
    font-size: 12px;
    color: #64748b;
}

.dchaber-columnist-single-bio {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.dchaber-columnist-single-bio .bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dchaber-columnist-single-bio .bio-content {
    flex-grow: 1;
}

.dchaber-columnist-single-bio .bio-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.dchaber-columnist-single-bio .bio-content h4 a {
    color: #0f172a;
    text-decoration: none;
}

.dchaber-columnist-single-bio .bio-unvan {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-left: 8px;
}

.dchaber-columnist-single-bio .bio-content p {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.bio-socials {
    display: flex;
    gap: 6px;
}

.bio-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.bio-all-btn {
    font-size: 13px;
    font-weight: 700;
    color: #b70002;
    text-decoration: none;
}

.bio-all-btn:hover {
    text-decoration: underline;
}

/* 9. RESPONSIVE MOBİL */
@media (max-width: 767px) {
    .dchaber-yazar-tabs {
        flex-direction: column !important;
    }
    .dchaber-tab-btn {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .dchaber-authors-grid {
        grid-template-columns: 1fr !important;
    }
    .dchaber-columnist-single-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bio-footer {
        flex-direction: column;
        gap: 10px;
    }
}
