/* ==========================================================================
   SBTU Modern News Detail Page (Light + Dark Theme)
   Targets .sbtu-news-detail, .post-detail, .post-redirect-wrap, .dosya
   ========================================================================== */

.sbtu-news-detail {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 32px;
    box-shadow: 0 18px 42px -24px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

/* Subtle top SBTU accent line */
.sbtu-news-detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #009fe3 0%, #38bdf8 55%, #ed1c24 100%);
}

/* Header block */
.sbtu-nd-header {
    position: static !important;
    margin-bottom: 22px;
}

.sbtu-nd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 159, 227, 0.1);
    border: 1px solid rgba(0, 159, 227, 0.22);
    color: #0284c7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sbtu-nd-kicker:empty {
    display: none;
}

.sbtu-nd-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #009fe3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.22);
}

.sbtu-nd-title {
    margin: 0 0 18px 0 !important;
    font-size: clamp(22px, 2.5vw, 31px) !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
}

/* Meta & Reading Tools Bar */
.sbtu-nd-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.sbtu-nd-meta-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.sbtu-nd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
}

.sbtu-nd-meta-item i {
    color: #009fe3;
    font-size: 14px;
}

.sbtu-nd-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sbtu-nd-tools .float-right {
    float: none !important;
    margin: 0 !important;
}

.sbtu-nd-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 180ms ease;
}

.sbtu-nd-tool-btn:hover {
    border-color: #009fe3;
    background: #009fe3;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px rgba(0, 159, 227, 0.55);
}

.sbtu-nd-tool-btn.is-copied {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff !important;
}

/* ReadAloud ("Dinle") button integration */
.sbtu-nd-tools #ra-player {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
}

.sbtu-nd-tools #ra-player .ra-button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 34px !important;
    padding: 0 13px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(0, 159, 227, 0.35) !important;
    background: rgba(0, 159, 227, 0.08) !important;
    color: #0284c7 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 180ms ease;
}

.sbtu-nd-tools #ra-player .ra-button:hover,
.sbtu-nd-tools #ra-player .ra-button.is-playing {
    background: #009fe3 !important;
    color: #ffffff !important;
}

.sbtu-nd-tools #ra-player .ra-button.is-playing {
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
}

.sbtu-nd-tools #ra-player .ra-button svg {
    width: 11px !important;
    height: 11px !important;
}

.sbtu-nd-tools #ra-player .ra-button svg polygon {
    fill: currentColor !important;
}

/* Featured Hero Image */
.sbtu-nd-media {
    margin: 24px 0 26px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px -22px rgba(15, 23, 42, 0.25);
}

.sbtu-nd-media:empty {
    display: none;
}

.sbtu-nd-media img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 540px;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sbtu-nd-media:hover img {
    transform: scale(1.015);
}

/* Editorial Content Body */
.sbtu-nd-content {
    font-size: 16px;
    line-height: 1.85;
    color: #1e293b;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sbtu-nd-content p {
    margin: 0 0 1.15em;
    line-height: 1.85;
}

.sbtu-nd-content h2,
.sbtu-nd-content h3,
.sbtu-nd-content h4 {
    color: #0f172a;
    font-weight: 700;
    margin: 1.4em 0 0.65em;
    line-height: 1.35;
}

.sbtu-nd-content a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sbtu-nd-content a:hover {
    color: #0369a1;
}

.sbtu-nd-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.24);
}

.sbtu-nd-content blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    border-left: 4px solid #009fe3;
    border-radius: 0 12px 12px 0;
    background: #f8fafc;
    color: #334155;
    font-style: italic;
}

.sbtu-nd-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.25em 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.sbtu-nd-content table th,
.sbtu-nd-content table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.sbtu-nd-content table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

/* Bottom Share & Tags Footer */
.sbtu-nd-footer {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sbtu-nd-share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sbtu-nd-share-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sbtu-nd-share-label i {
    color: #009fe3;
}

.sbtu-nd-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sbtu-nd-share-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 180ms ease;
}

.sbtu-nd-share-btn:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
    border-color: transparent;
}

.sbtu-nd-share-btn--fb:hover { background: #1877f2; box-shadow: 0 8px 18px -8px rgba(24, 119, 242, 0.7); }
.sbtu-nd-share-btn--x:hover { background: #0f172a; box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.7); }
.sbtu-nd-share-btn--wa:hover { background: #16a34a; box-shadow: 0 8px 18px -8px rgba(22, 163, 74, 0.7); }
.sbtu-nd-share-btn--li:hover { background: #0a66c2; box-shadow: 0 8px 18px -8px rgba(10, 102, 194, 0.7); }
.sbtu-nd-share-btn--print:hover { background: #0284c7; box-shadow: 0 8px 18px -8px rgba(2, 132, 199, 0.7); }

/* Tags */
.sbtu-nd-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sbtu-nd-tags:empty {
    display: none;
}

.sbtu-nd-tags a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 159, 227, 0.1) !important;
    border: 1px solid rgba(0, 159, 227, 0.22);
    color: #0284c7 !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 180ms ease;
}

.sbtu-nd-tags a:hover {
    background: #009fe3 !important;
    color: #ffffff !important;
    border-color: #009fe3;
}

/* File Attachments (.dosya) */
.dosya {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0;
}

.dosya ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.dosya li {
    padding: 10px 14px 10px 30px !important;
    border-radius: 10px;
    background-color: #ffffff !important;
    background-position: 10px 13px !important;
    border: 1px solid #e2e8f0;
}

.dosya li a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.dosya li a p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #64748b;
}

/* ==========================================================================
   DARK MODE OVERRIDES (html.sbtu-dark)
   ========================================================================== */

html.sbtu-dark .sbtu-news-detail,
html.sbtu-dark .post-detail.blg-summary {
    background: #0c1c34 !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    box-shadow: 0 24px 54px -20px rgba(0, 0, 0, 0.72) !important;
    color: #e2e8f0 !important;
}

html.sbtu-dark .sbtu-nd-kicker {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.32);
    color: #7dd3fc;
}

html.sbtu-dark .sbtu-nd-title,
html.sbtu-dark .post-detail h3,
html.sbtu-dark .post-detail h3 a {
    color: #f8fafc !important;
}

html.sbtu-dark .sbtu-nd-meta-bar {
    background: #091528 !important;
    border-color: rgba(56, 189, 248, 0.18) !important;
}

html.sbtu-dark .sbtu-nd-meta-item {
    color: #cbd5e1 !important;
}

html.sbtu-dark .sbtu-nd-meta-item i {
    color: #38bdf8 !important;
}

html.sbtu-dark .sbtu-nd-tool-btn {
    background: #122645 !important;
    border-color: rgba(56, 189, 248, 0.26) !important;
    color: #e2e8f0 !important;
}

html.sbtu-dark .sbtu-nd-tool-btn:hover {
    background: #009fe3 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

html.sbtu-dark .sbtu-nd-tools #ra-player .ra-button {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.34) !important;
    color: #7dd3fc !important;
}

html.sbtu-dark .sbtu-nd-tools #ra-player .ra-button:hover,
.sbtu-nd-tools #ra-player .ra-button.is-playing {
    background: #009fe3 !important;
    color: #ffffff !important;
}

.sbtu-nd-tools #ra-player .ra-button.is-playing {
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
}

html.sbtu-dark .sbtu-nd-media {
    background: #071222 !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.8) !important;
}

/* Override any pasted CKEditor/Word dark text & white inline backgrounds in dark mode */
html.sbtu-dark .sbtu-nd-content,
html.sbtu-dark .sbtu-nd-content p,
html.sbtu-dark .sbtu-nd-content div,
html.sbtu-dark .sbtu-nd-content span,
html.sbtu-dark .sbtu-nd-content li,
html.sbtu-dark .sbtu-nd-content font,
html.sbtu-dark .sbtu-nd-content strong,
html.sbtu-dark .sbtu-nd-content b {
    color: #e2e8f0 !important;
    background-color: transparent !important;
}

html.sbtu-dark .sbtu-nd-content h1,
html.sbtu-dark .sbtu-nd-content h2,
html.sbtu-dark .sbtu-nd-content h3,
html.sbtu-dark .sbtu-nd-content h4,
html.sbtu-dark .sbtu-nd-content h5 {
    color: #f8fafc !important;
}

html.sbtu-dark .sbtu-nd-content a {
    color: #38bdf8 !important;
}

html.sbtu-dark .sbtu-nd-content a:hover {
    color: #7dd3fc !important;
}

html.sbtu-dark .sbtu-nd-content blockquote {
    background: #091528 !important;
    border-left-color: #38bdf8 !important;
    color: #cbd5e1 !important;
}

html.sbtu-dark .sbtu-nd-content table {
    border-color: rgba(56, 189, 248, 0.22) !important;
    background: #091528 !important;
}

html.sbtu-dark .sbtu-nd-content table th {
    background: #122645 !important;
    color: #f8fafc !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
}

html.sbtu-dark .sbtu-nd-content table td {
    background: #0a182e !important;
    color: #e2e8f0 !important;
    border-color: rgba(56, 189, 248, 0.16) !important;
}

html.sbtu-dark .sbtu-nd-footer {
    border-top-color: rgba(56, 189, 248, 0.18) !important;
}

html.sbtu-dark .sbtu-nd-share-label {
    color: #94a3b8 !important;
}

html.sbtu-dark .sbtu-nd-share-btn {
    background: #122645 !important;
    border-color: rgba(56, 189, 248, 0.24) !important;
    color: #e2e8f0 !important;
}

html.sbtu-dark .sbtu-nd-share-btn--x:hover {
    background: #1e293b !important;
    border-color: #64748b !important;
}

html.sbtu-dark .sbtu-nd-tags a {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #7dd3fc !important;
}

html.sbtu-dark .sbtu-nd-tags a:hover {
    background: #009fe3 !important;
    color: #ffffff !important;
}

/* Dark Mode for File Attachments (.dosya) */
html.sbtu-dark .dosya {
    background: #091528 !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
}

html.sbtu-dark .dosya li {
    background-color: #102442 !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
}

html.sbtu-dark .dosya li a,
html.sbtu-dark .dosya li a font {
    color: #e2e8f0 !important;
}

html.sbtu-dark .dosya li a p {
    color: #94a3b8 !important;
}

/* Dark Mode for External Link Redirect Card (.post-redirect-wrap) */
html.sbtu-dark .post-redirect-wrap {
    background: #0c1c34 !important;
    border-color: rgba(56, 189, 248, 0.24) !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65) !important;
    color: #e2e8f0 !important;
}

html.sbtu-dark .post-redirect-wrap h2,
html.sbtu-dark .post-redirect-count {
    color: #f8fafc !important;
}

html.sbtu-dark .post-redirect-desc,
html.sbtu-dark .post-redirect-timer,
html.sbtu-dark .post-redirect-unit {
    color: #94a3b8 !important;
}

html.sbtu-dark .post-redirect-target {
    background: #091528 !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
    color: #94a3b8 !important;
}

html.sbtu-dark .post-redirect-target strong {
    color: #f1f5f9 !important;
}

html.sbtu-dark .post-redirect-btn {
    background: #122645 !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
    color: #e2e8f0 !important;
}

html.sbtu-dark .post-redirect-btn-primary {
    background: #009fe3 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

/* Sidebar Recent News Widget (.slim-scroll .alert / .alerts & .dialogs) */
.sidebar .section-title_post {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 14px !important;
    padding: 0 0 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    position: relative;
}

.sidebar .section-title_post::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #009fe3, #ed1c24);
}

html.sbtu-dark .sidebar .section-title_post {
    color: #f8fafc !important;
    border-bottom-color: rgba(56, 189, 248, 0.22) !important;
}

.sidebar .slim-scroll .contents,
.sidebar .slim-scroll .content {
    padding-right: 12px;
}

body .slim-scroll .content .alert,
body .slim-scroll .contents .alerts,
body .slim-scroll .alerts,
.slim-scroll .alert,
.slim-scroll .alerts {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #009fe3 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin: 0 0 10px 0 !important;
    box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.14) !important;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body .slim-scroll .content .alert:hover,
body .slim-scroll .contents .alerts:hover,
body .slim-scroll .alerts:hover,
.slim-scroll .alert:hover,
.slim-scroll .alerts:hover {
    transform: translateX(3px);
    background: #eff6ff !important;
    background-color: #eff6ff !important;
    border-color: rgba(0, 159, 227, 0.35) !important;
}

body .slim-scroll .content .alert a,
body .slim-scroll .contents .alerts a,
body .slim-scroll .alerts a,
.slim-scroll .alert a,
.slim-scroll .alerts a {
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    display: block;
}

body .slim-scroll .content .alert:hover a,
body .slim-scroll .contents .alerts:hover a,
body .slim-scroll .alerts:hover a,
.slim-scroll .alert:hover a,
.slim-scroll .alerts:hover a {
    color: #0284c7 !important;
}

html.sbtu-dark .sidebar .slim-scroll .contents,
.sidebar .slim-scroll .content {
    padding-right: 12px;
}

body .slim-scroll .content .alert,
html.sbtu-dark body .slim-scroll .contents .alerts,
html.sbtu-dark body .slim-scroll .alerts,
html.sbtu-dark .slim-scroll .alert,
html.sbtu-dark .slim-scroll .alerts {
    background: #0f223d !important;
    background-color: #0f223d !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-left: 3px solid #38bdf8 !important;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.6) !important;
}

html.sbtu-dark body .slim-scroll .content .alert:hover,
html.sbtu-dark body .slim-scroll .contents .alerts:hover,
html.sbtu-dark body .slim-scroll .alerts:hover,
html.sbtu-dark .slim-scroll .alert:hover,
html.sbtu-dark .slim-scroll .alerts:hover {
    background: #153057 !important;
    background-color: #153057 !important;
    border-color: rgba(56, 189, 248, 0.48) !important;
}

html.sbtu-dark body .slim-scroll .content .alert a,
html.sbtu-dark body .slim-scroll .contents .alerts a,
html.sbtu-dark body .slim-scroll .alerts a,
html.sbtu-dark .slim-scroll .alert a,
html.sbtu-dark .slim-scroll .alerts a {
    color: #e2e8f0 !important;
}

html.sbtu-dark body .slim-scroll .content .alert:hover a,
html.sbtu-dark body .slim-scroll .contents .alerts:hover a,
html.sbtu-dark body .slim-scroll .alerts:hover a,
html.sbtu-dark .slim-scroll .alert:hover a,
html.sbtu-dark .slim-scroll .alerts:hover a {
    color: #7dd3fc !important;
}

/* Empty attachment notice */
.sbtu-nd-nofile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.sbtu-nd-nofile i {
    color: #009fe3;
}

html.sbtu-dark .sbtu-nd-nofile {
    background: #091528 !important;
    border-color: rgba(56, 189, 248, 0.24) !important;
    color: #94a3b8 !important;
}

html.sbtu-dark .sbtu-nd-nofile i {
    color: #38bdf8 !important;
}

html.sbtu-dark .slimScrollRail {
    background: rgba(148, 163, 184, 0.16) !important;
}

html.sbtu-dark .slimScrollBar {
    background: #38bdf8 !important;
}

html.sbtu-dark .dialogs .dialogdiv {
    background: #0f223d !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

html.sbtu-dark .dialogs .dialogdiv .text a {
    color: #e2e8f0 !important;
}

html.sbtu-dark .dialogs .dialogdiv .text a:hover {
    color: #7dd3fc !important;
}

/* Responsive */
@media (max-width: 767px) {
    .sbtu-news-detail {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .sbtu-nd-meta-bar {
        padding: 12px;
    }

    .sbtu-nd-share-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
