html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

section[id] {
    scroll-margin-top: 110px;
}

.material-symbols-outlined {
    display: inline-block;
    width: 1em;
    height: 1em;
    overflow: hidden;
    line-height: 1;
    vertical-align: middle;
    visibility: hidden;
    font-family: "Material Symbols Outlined";
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

html.icons-ready .material-symbols-outlined,
html.no-font-api .material-symbols-outlined {
    visibility: visible;
}

.stats-card-shadow {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.admin-card {
    border: 1px solid #d5d7de;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}

.admin-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #101828;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #eaecf0;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #475467;
    font-weight: 600;
    background: #f8f9fc;
}

.admin-table tr:hover td {
    background: #f9fafb;
}

#world-map {
    width: 100%;
    height: clamp(320px, 55vw, 560px);
    border-radius: 12px;
}

.map-legend {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d7d8de;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.3;
    color: #1f2937;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.12);
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
}

.map-legend .swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.country-popup {
    min-width: 180px;
    color: #111827;
}

.country-popup .title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.country-popup .row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 4px;
}

.country-popup .label {
    color: #6b7280;
}

.country-popup .value {
    font-weight: 600;
}

.country-popup .news-link {
    display: inline-block;
    margin-top: 4px;
    background: #111827;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.leaflet-container {
    z-index: 1;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 100;
}

.news-slider-root .news-stack {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.news-slide {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
    transition: opacity 500ms ease, transform 500ms ease;
    pointer-events: none;
}

.news-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

.news-slide:hover .news-slide-image {
    transform: scale(1.04);
}

.news-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid #94a3b8;
    background: #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: all 200ms ease;
    cursor: pointer;
}

.news-dot:hover {
    background: #cbd5e1;
    transform: scale(1.08);
}

.news-dot.is-active {
    width: 30px;
    background: #0f172a;
    border-color: #0f172a;
}

.news-dot:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.most-read-card:hover .most-read-thumb {
    transform: scale(1.06);
}

.breaking-news-track-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.breaking-news-track {
    display: inline-flex;
    min-width: 100%;
    white-space: nowrap;
    gap: 120px;
    animation: breakingTicker 35s linear infinite;
}

.breaking-news-track span {
    display: inline-block;
    white-space: nowrap;
}

.breaking-news-group {
    display: inline-flex;
    align-items: center;
    gap: 56px;
}

.breaking-news-link {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.95;
}

.breaking-news-link:hover {
    text-decoration: underline;
    opacity: 1;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    #world-map {
        height: clamp(260px, 62vw, 420px);
    }

    .news-dot {
        width: 18px;
        height: 18px;
    }

    .news-dot.is-active {
        width: 36px;
    }

    .breaking-news-track {
        gap: 64px;
        animation-duration: 26s;
    }

    .breaking-news-group {
        gap: 30px;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@keyframes breakingTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Haber ozeti HTML (adminden gelen guvenli icerik) */
.news-summary-body p {
    margin: 0 0 0.75rem;
}

.news-summary-body p:last-child {
    margin-bottom: 0;
}

.news-summary-body ul,
.news-summary-body ol {
    margin: 0 0 0.85rem;
    padding-left: 1.25rem;
}

.news-summary-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 1.1rem 0 0.5rem;
    color: rgb(15 23 42);
}

.news-summary-body h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0.9rem 0 0.45rem;
    color: rgb(15 23 42);
}

.news-summary-body a {
    color: rgb(29 78 216);
    text-decoration: underline;
}

.news-summary-body blockquote {
    margin: 0.75rem 0;
    padding-left: 1rem;
    border-left: 4px solid rgb(226 232 240);
    color: rgb(71 85 105);
}

.news-summary-body .ql-size-small { font-size: 0.88em; }
.news-summary-body .ql-size-large { font-size: 1.28em; }
.news-summary-body .ql-size-huge { font-size: 1.65em; }
.news-summary-body .ql-align-center { text-align: center; }
.news-summary-body .ql-align-right { text-align: right; }
.news-summary-body .ql-align-justify { text-align: justify; }

.admin-quill-mount .ql-toolbar {
    border-radius: 0.375rem 0.375rem 0 0;
    border-color: rgb(226 232 240);
}

.admin-quill-mount .ql-container {
    font-size: 15px;
    min-height: 140px;
    border-radius: 0 0 0.375rem 0.375rem;
    border-color: rgb(226 232 240);
}

.admin-quill-mount .ql-editor {
    min-height: 120px;
}
