@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Line clamp helpers ---------- */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ---------- Breaking news ticker ---------- */
@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 25s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}

/* ---------- Article prose ---------- */
.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}
.prose p { margin: 0 0 1.25rem; }
.prose h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: #0f172a;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}
.prose h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
}
.prose a {
    color: #16a34a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover { color: #15803d; }
.prose ul,
.prose ol {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35rem; }
.prose blockquote {
    border-left: 4px solid #16a34a;
    padding: 0.5rem 0 0.5rem 1.25rem;
    font-style: italic;
    color: #475569;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
}
.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}
.prose pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9em;
}
.prose code {
    background: #f1f5f9;
    color: #be185d;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.9em;
}
.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.prose hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}
.prose figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: -1rem;
    margin-bottom: 1.25rem;
}
.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.prose th,
.prose td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.prose th { background: #f8fafc; font-weight: 600; }

/* ---------- Ad slots ---------- */
.ad-slot {
    text-align: center;
    max-width: 100%;
    overflow-x: auto;
}
.ad-label {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}
.ad-slot ins.adsbygoogle,
.ad-slot iframe,
.ad-slot img {
    max-width: 100%;
    height: auto;
}
.ad-in-article {
    margin: 1.75rem 0;
}

/* ---------- Social media embeds ---------- */
.fn-embed {
    max-width: 100%;
    overflow-x: auto;
    margin: 1.75rem auto;
}
.fn-embed .twitter-tweet,
.fn-embed .instagram-media,
.fn-embed .fb-post,
.fn-embed .text-embed,
.fn-embed .tiktok-embed {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Dark mode (class-based) ---------- */
.dark .prose { color: #cbd5e1; }
.dark .prose h2,
.dark .prose h3 { color: #f1f5f9; }
.dark .prose blockquote {
    color: #cbd5e1;
    background: #1e293b;
}
.dark .prose code {
    background: #1e293b;
    color: #f472b6;
}
.dark .prose pre code { background: transparent; color: inherit; }
.dark .prose hr { border-top-color: #334155; }
.dark .prose th,
.dark .prose td { border-color: #334155; }
.dark .prose th { background: #1e293b; }

/* ---------- Admin rich text editor ---------- */
.editor-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.editor-btn:hover { background: #e2e8f0; color: #0f172a; }
.editor-btn.is-active {
    background: #16a34a;
    color: #ffffff;
}
.editor-btn.is-active:hover { background: #15803d; color: #ffffff; }

.editor-area:empty::before {
    content: attr(placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.editor-area.is-dragging {
    outline: 2px dashed #16a34a;
    outline-offset: -2px;
    background: #f0fdf4;
}
.editor-area img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}
.editor-area blockquote {
    border-left: 3px solid #16a34a;
    padding-left: 0.75rem;
    color: #64748b;
    font-style: italic;
    margin: 0.5rem 0;
}
.editor-area ul { list-style: disc; padding-left: 1.5rem; }
.editor-area ol { list-style: decimal; padding-left: 1.5rem; }

.editor-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 60;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.editor-toast.is-error {
    background: #dc2626;
}
/* Hide scrollbars on horizontal tab strips */
.scrollbar-none { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
