/**
 * Haber detay sayfası
 * HER ZAMAN açık arka plan, koyu yazı (koyu mod detayda uygulanmaz).
 */

/* ---- Detay sayfası: HER ZAMAN açık arka plan, KOYU yazı ---- */
/* Daha spesifik selector'lar kullanarak !important azaltıldı */
body.single .site-main,
body.single .single-wrap {
    background-color: #f5f6fa;
}

body.single .single-wrap .entry-title,
body.single .single-wrap .entry-lead,
body.single .single-wrap .entry-content,
body.single .single-wrap .entry-content p,
body.single .single-wrap .entry-content li,
body.single .single-wrap .entry-content h2,
body.single .single-wrap .entry-content h3,
body.single .single-wrap .entry-content h4,
body.single .single-wrap .entry-content blockquote,
body.single .single-wrap .related-posts-title,
body.single .single-wrap .related-post-title,
body.single .single-wrap .nav-title {
    color: #1a1a1a;
}

body.single .single-wrap .entry-meta,
body.single .single-wrap .entry-share-inline .share-button,
body.single .single-wrap .related-post-meta,
body.single .single-wrap .nav-label,
body.single .single-wrap .tags-label {
    color: #616161;
}

body.single .single-wrap .entry-meta .author-link {
    color: #2c3e50;
}

body.single .single-wrap .entry-meta .author-link:hover,
body.single .single-wrap .entry-share-inline .share-button:hover {
    color: #0d47a1;
}

body.single .single-wrap .entry-content a {
    color: #0d47a1;
}

body.single .single-wrap .entry-thumbnail-caption,
body.single .single-wrap .page-links {
    color: #424242;
}

body.single .single-wrap .tags-list a {
    color: #2c3e50;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

body.single .single-wrap .tags-list a:hover {
    color: #fff;
    background-color: #0d47a1;
    border-color: #0d47a1;
}

/* ---- Container ---- */
.single .site-main {
    background-color: var(--color-bg);
}

.single-wrap {
    background-color: var(--color-bg);
    padding: 1.5rem 1.25rem 3rem;
}

@media (min-width: 700px) {
    .single-wrap {
        padding: 2rem 1.5rem 4rem;
    }
}

/* ---- Makale gövdesi: container genişliğinde ---- */
.single-post {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ---- Başlık alanı ---- */
.single-post .entry-header {
    margin-bottom: 1.5rem;
}

.single-post .entry-category {
    margin-bottom: 0.75rem;
}

.single-post .entry-category a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.single-post .entry-category a:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
}

.single-post .entry-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 0.75rem;
}

.single-post .entry-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0 0 1.25rem;
}

/* Meta + paylaşım tek satır ---- */
.single-post .entry-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.single-post .entry-meta-row--bottom {
    margin-top: 1.5rem;
    border-bottom: none;
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.single-post .entry-meta > span + span::before {
    content: "·";
    margin-right: 0.75rem;
    color: var(--color-border-dark);
}

.single-post .entry-meta .author-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.single-post .entry-meta .author-link:hover {
    color: var(--color-primary);
}

.single-post .entry-share-inline {
    flex-shrink: 0;
}

.single-post .entry-share-inline .share-buttons {
    margin: 0;
    padding: 0;
    background: transparent;
}

.single-post .entry-share-inline .share-label {
    display: none;
}

.single-post .entry-share-inline .share-buttons-list {
    display: flex;
    gap: 0.35rem;
}

.single-post .entry-share-inline .share-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-text-muted);
}

.single-post .entry-share-inline .share-button .share-text {
    display: none;
}

.single-post .entry-share-inline .share-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-lighter, #e3f2fd);
}

/* ---- Öne çıkan görsel ---- */
.single-post .entry-thumbnail {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-bg-lighter);
}

.single-post .entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.single-post .entry-thumbnail-caption {
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    background-color: var(--color-bg-light);
    font-style: italic;
    border-top: 1px solid var(--color-border);
}

/* ---- İçerik (gövde metni): container genişliği (content.css ortalamasını geçersiz kıl) ---- */
.single-post__content {
    margin-top: 1.5rem;
}

.single-wrap .entry-content.reading-width,
.single-post .entry-content {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
}

.single-post .entry-content p {
    margin-bottom: 1.25em;
    color: var(--color-text);
}

.single-post .entry-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2em 0 0.6em;
    color: var(--color-text);
    line-height: 1.35;
}

.single-post .entry-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    color: var(--color-text);
    line-height: 1.4;
}

.single-post .entry-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25em 0 0.4em;
    color: var(--color-text);
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25em 0;
    display: block;
}

.single-post .entry-content > p:first-of-type {
    margin-top: 0;
}

.single-post .entry-content blockquote {
    margin: 1.5em 0;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.single-post .entry-content li {
    margin-bottom: 0.4em;
    color: var(--color-text);
}

.single-post .entry-content a {
    color: var(--color-link);
    text-decoration: none;
}

.single-post .entry-content a:hover {
    text-decoration: underline;
}

.single-post .page-links {
    margin-top: 1.25em;
    padding-top: 0.75em;
    border-top: 1px solid var(--color-border);
    font-size: 0.9375rem;
    color: var(--color-text);
}

/* ---- Reklam alanları (şimdilik gizli) ---- */
.single-wrap .isk-ad,
.single-wrap .isk-ad-placeholder {
    display: none !important;
}

/* ---- Alt bilgi (etiketler) ---- */
.single-post .entry-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.single-post .entry-footer .post-meta-share {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.single-post .entry-tags {
    margin-top: 0.5rem;
}

.single-post .tags-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.single-post .tags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.single-post .tags-list a {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    background-color: var(--color-bg-lighter);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8125rem;
    border: 1px solid var(--color-border);
}

.single-post .tags-list a:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

/* ---- İlgili haberler (açık zemin, koyu yazı – sabit palet) ---- */
.single-post .related-posts {
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.single-post .related-posts-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.single-post .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.single-post .related-post-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.single-post .related-post-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.single-post .related-post-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.single-post .related-post-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 140px;
    overflow: hidden;
    background: #e8e8e8;
}

.single-post .related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.single-post .related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.03);
}

.single-post .related-post-thumbnail--placeholder {
    background: #ececec;
}

.single-post .related-post-category {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #0d47a1;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.single-post .related-post-content {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.single-post .related-post-title {
    font-size: 1.0625rem;
    line-height: 1.38;
    margin: 0;
    font-weight: 700;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.single-post .related-post-link:hover .related-post-title {
    color: #0d47a1;
}

.single-post .related-post-meta {
    font-size: 0.8125rem;
    color: #616161;
    margin-top: auto;
}

/* ---- Önceki / Sonraki ---- */
.single-post .post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-border);
}

.single-post .nav-previous,
.single-post .nav-next {
    padding: 0.85rem 1rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.2s, background-color 0.2s;
}

.single-post .nav-previous:hover,
.single-post .nav-next:hover {
    background-color: var(--color-bg);
    border-color: var(--color-primary);
}

.single-post .nav-next {
    text-align: right;
}

.single-post .nav-previous a,
.single-post .nav-next a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.single-post .nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.single-post .nav-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.single-post .nav-previous a:hover .nav-title,
.single-post .nav-next a:hover .nav-title {
    color: var(--color-primary);
}

/* ---- Detay sayfası: yazılar her zaman koyu (tema/değişken geçersiz) ---- */
body.single .single-wrap .entry-title,
body.single .single-wrap .entry-lead,
body.single .single-wrap .entry-content,
body.single .single-wrap .entry-content p,
body.single .single-wrap .entry-content li,
body.single .single-wrap .entry-content h2,
body.single .single-wrap .entry-content h3,
body.single .single-wrap .entry-content h4,
body.single .single-wrap .entry-content blockquote,
body.single .single-wrap .related-posts-title,
body.single .single-wrap .related-post-title,
body.single .single-wrap .related-post-title a,
body.single .single-wrap .nav-title,
body.single .single-wrap .author-name,
body.single .single-wrap .author-name a {
    color: #1a1a1a !important;
}

body.single .single-wrap .entry-content blockquote {
    background-color: #f5f5f5 !important;
    border-left-color: #0d47a1 !important;
}

body.single .single-wrap .entry-meta,
body.single .single-wrap .entry-share-inline .share-button,
body.single .single-wrap .related-post-meta,
body.single .single-wrap .nav-label,
body.single .single-wrap .tags-label,
body.single .single-wrap .author-description {
    color: #616161 !important;
}

body.single .single-wrap .entry-meta .author-link {
    color: #2c3e50 !important;
}

body.single .single-wrap .entry-meta .author-link:hover,
body.single .single-wrap .entry-share-inline .share-button:hover {
    color: #0d47a1 !important;
}

body.single .single-wrap .entry-content a {
    color: #0d47a1 !important;
}

/* ---- Koyu mod: eksik değişkenler / ince ayar ---- */
[data-theme="dark"] .single-post .entry-share-inline .share-button:hover,
.dark-mode .single-post .entry-share-inline .share-button:hover {
    background-color: rgba(74, 158, 255, 0.15);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .single-wrap {
        padding: 1rem 1rem 2rem;
    }

    .single-post .entry-title {
        font-size: 1.375rem;
    }

    .single-post .entry-lead {
        font-size: 1rem;
    }

    .single-post .entry-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .single-post .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post .post-navigation {
        grid-template-columns: 1fr;
    }

    .single-post .nav-next {
        text-align: left;
    }
}

/* ========== Sosyal medya hesaplarımız (haber detay sayfasında) ========== */
.single-social-follow {
    padding: 1.5rem 0;
    margin: 2rem 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #f8fafc 100%);
    color: #1a1a1a;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* İçerik içinde gösterilen sosyal medya bloğu */
.entry-social-follow-inline {
    margin: 2rem 0;
    clear: both;
}

.single-social-follow--inline {
    padding: 1.25rem 1rem;
    margin: 0;
    border-radius: 8px;
    max-width: 100%;
}

.single-social-follow--inline .single-social-follow__inner {
    max-width: 100%;
    padding: 0;
}

.single-social-follow__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.single-social-follow__line-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.single-social-follow__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.single-social-follow__list li {
    margin: 0;
}

.single-social-follow__link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.35rem;
    background: #f5f5f5;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.single-social-follow__link .single-social-follow__icon-wrap {
    background: #e0e0e0;
}

.single-social-follow__link .single-social-follow__icon,
.single-social-follow__link .single-social-follow__icon svg {
    color: #1a1a1a;
    fill: currentColor;
}

.single-social-follow__link:hover {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.single-social-follow__link:hover .single-social-follow__icon-wrap {
    background: rgba(255, 255, 255, 0.35);
}

.single-social-follow__link:hover .single-social-follow__icon,
.single-social-follow__link:hover .single-social-follow__icon svg {
    color: #ffffff;
    fill: #ffffff;
}

.single-social-follow__link--facebook:hover { background: #1877f2; }
.single-social-follow__link--instagram:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.single-social-follow__link--youtube:hover { background: #ff0000; }
.single-social-follow__link--tiktok:hover { background: #000000; }
.single-social-follow__link--twitter:hover { background: #000000; }
.single-social-follow__link--linkedin:hover { background: #0077b5; }
.single-social-follow__link--whatsapp:hover { background: #25d366; }
.single-social-follow__link--telegram:hover { background: #0088cc; }

.single-social-follow__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.single-social-follow__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.single-social-follow__icon svg {
    width: 100%;
    height: 100%;
}

.single-social-follow__label {
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    .single-social-follow {
        padding: 1.25rem 0;
        margin: 1.5rem 0;
    }
    
    .single-social-follow__inner {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .single-social-follow__list {
        width: 100%;
        justify-content: center;
    }
    
    .single-social-follow__link {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}
