/* 
Theme Name: Default Minimalist
Theme URI: https://github.com/
Author: Rifan Muazin
Description: Clean, minimalist news theme with Bootstrap 5 + Swiper Slider
Version: 2.0
*/

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

/* ── BASE ─────────────────────────────────────────────────────────── */
:root {
    --accent: #DE2910;
    --accent-dark: #b7210d;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: #222;
    font-size: 15px;
    line-height: 1.7;
}

a { color: inherit; }

/* ── HEADER ───────────────────────────────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-logo span { color: var(--accent); }

.site-nav { background: #1a1a1a; }
.site-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .03em;
    transition: color .2s;
    padding: 8px 12px !important;
}
.site-nav .nav-link:hover { color: var(--accent) !important; }

/* ── BREAKING NEWS TICKER ─────────────────────────────────────────── */
.breaking-news {
    background: var(--accent);
    color: #fff;
    overflow: hidden;
    height: 36px;
}

.breaking-label {
    background: #000;
    color: #FFD700;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .08em;
    padding: 0 16px;
    height: 36px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.ticker-wrap { overflow: hidden; flex: 1; }

.ticker {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
    font-size: .82rem;
    font-weight: 500;
    padding: 0 40px;
    line-height: 36px;
    display: inline-block;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ── NEWS SWIPER ──────────────────────────────────────────────────── */
.newsSwiper .swiper-button-next,
.newsSwiper .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,.4);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    --swiper-navigation-size: 18px;
}

.newsSwiper .swiper-pagination-bullet-active { background: var(--accent); }

/* ── CARDS & HOVER ────────────────────────────────────────────────── */
.hover-card { transition: transform .2s, box-shadow .2s; }
.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────── */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.widget-title {
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 8px;
    margin-bottom: 14px;
    color: #111;
}

/* ── POST CONTENT ─────────────────────────────────────────────────── */
.post-content {
    font-size: 16px;
    line-height: 1.85;
}

.post-content h2, .post-content h3 {
    font-weight: 800;
    margin-top: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.post-content a { color: var(--accent); text-decoration: underline; }
.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    background: #fef5f5;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
    margin: 20px 0;
}

.post-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.post-content table th,
.post-content table td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.post-content table th { background: var(--accent); color: #fff; }
.post-content code { background: #f1f3f5; padding: 2px 6px; border-radius: 4px; font-size: .88em; }
.post-content pre { background: #1a1a2e; color: #e6edf3; border-radius: 8px; padding: 20px; overflow-x: auto; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,.75);
}

.footer-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
}
.footer-link:hover { color: var(--accent); }

.footer-hr { border-color: rgba(255,255,255,.1); }

/* ── BADGES ───────────────────────────────────────────────────────── */
.badge.bg-danger { background-color: var(--accent) !important; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .newsSwiper { max-height: 240px !important; }
    .newsSwiper .swiper-slide img { height: 240px !important; }
    .site-header { position: relative; }
    .breaking-label { font-size: .65rem; padding: 0 10px; }
}
