/* SportsCentralNews.com - Professional Sports News Theme */

:root {
    --bg: #f9fafb;
    --bg-card: #ffffff;
    --bg-surface: #f3f4f6;
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --red: #e11d48;
    --red-hover: #be123c;
    --red-light: rgba(225,29,72,0.08);
    --accent: #e11d48;
    --nav-height: 60px;
    --bar-height: 38px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow: 0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Breaking News Bar ── */
.breaking-bar {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: var(--bar-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.breaking-label {
    background: #fff;
    color: var(--red);
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 16px;
    height: 100%;
    display: flex;
    align-items: center;
}
.breaking-scroll {
    display: flex;
    align-items: center;
    gap: 0;
    animation: breakingScroll 40s linear infinite;
    white-space: nowrap;
}
.breaking-scroll:hover { animation-play-state: paused; }
.breaking-item { padding: 0 32px; border-right: 1px solid rgba(255,255,255,0.3); }
.breaking-item a { color: #fff; }
.breaking-item a:hover { text-decoration: underline; }
@keyframes breakingScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Navigation ── */
.main-nav {
    background: var(--navy);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--red);
}
.has-breaking .main-nav {
    top: var(--bar-height);
}
.nav-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-logo {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-logo span { color: var(--red); }
.nav-cats {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cat {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nav-cat:hover, .nav-cat.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cat.active { color: var(--red); }
.nav-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-search input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    width: 180px;
    outline: none;
    transition: all var(--transition);
    font-family: var(--font);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search input:focus { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); width: 220px; }

/* ── Layout ── */
.container { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 32px 0 48px;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ── Section Titles ── */
.section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--red);
    border-radius: 2px;
}

/* ── Hero Article ── */
.hero-article {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/7;
    margin-bottom: 32px;
    background: var(--navy);
    cursor: pointer;
}
.hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-article:hover img { transform: scale(1.03); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,15,30,0.95) 0%, rgba(10,15,30,0.4) 55%, transparent 100%);
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
}
.hero-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--red);
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.hero-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    transition: opacity var(--transition);
}
.hero-article:hover .hero-title { opacity: 0.9; }
.hero-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Article Grid ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-surface);
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .card-img img { transform: scale(1.05); }
.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}
.article-card:hover .card-title { color: var(--red); }
.card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.card-meta-dot { width: 3px; height: 3px; background: var(--border-dark); border-radius: 50%; }

/* ── List Articles (sidebar / recent) ── */
.article-list { display: flex; flex-direction: column; gap: 0; }
.list-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-img {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-surface);
}
.list-img img { width: 100%; height: 100%; object-fit: cover; }
.list-body { flex: 1; min-width: 0; }
.list-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 4px;
}
.list-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    letter-spacing: -0.01em;
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-item:hover .list-title { color: var(--red); }
.list-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── Sidebar Card ── */
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.sidebar-card .section-title { margin-bottom: 16px; }

/* ── Category Badge ── */
.cat-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--red-light);
    color: var(--red);
}

/* ── Breaking Badge ── */
.badge-breaking {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 2px;
}

/* ── Category Page ── */
.cat-header {
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.cat-header h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
}
.cat-header h1 span {
    display: inline-block;
    width: 6px;
    height: 32px;
    border-radius: 3px;
}
.cat-count { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-top: 4px; }

/* ── Article Page ── */
.article-header { padding: 28px 0 0; }
.article-header .breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border-dark); }
.article-page-title {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 16px;
}
.article-page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.article-page-meta a { color: var(--red); font-weight: 600; }
.article-hero-img {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}
.article-excerpt {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    border-left: 3px solid var(--red);
    padding-left: 20px;
    margin-bottom: 28px;
    font-style: italic;
}
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}
.article-body h2 { font-size: 22px; font-weight: 800; margin: 32px 0 14px; letter-spacing: -0.02em; color: var(--navy); }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; letter-spacing: -0.01em; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 700; color: var(--navy); }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 0 0 48px;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.page-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn.dots { border: none; background: none; cursor: default; }

/* ── Search Page ── */
.search-header { padding: 28px 0 24px; }
.search-form { display: flex; gap: 10px; margin-bottom: 24px; }
.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-card);
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--red); }
.btn-search {
    padding: 12px 24px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: background var(--transition);
}
.btn-search:hover { background: var(--red-hover); }

/* ── Footer ── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 0;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.footer-brand .logo span { color: var(--red); }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── Admin Bar ── */
.admin-bar {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.1);
}
.admin-bar a { color: rgba(255,255,255,0.8); transition: color var(--transition); }
.admin-bar a:hover { color: #fff; }
.admin-sep { color: rgba(255,255,255,0.2); }

/* ── No Articles ── */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}
.empty-state h2 { font-size: 20px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ── 404 ── */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}
.page-404 .num { font-size: 120px; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -0.05em; }
.page-404 h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin: 8px 0 12px; }
.page-404 p { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.btn-home {
    display: inline-block;
    padding: 12px 28px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    transition: background var(--transition);
}
.btn-home:hover { background: var(--red-hover); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .article-layout { grid-template-columns: 1fr; }
    .article-layout .sidebar { display: block; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .article-grid { grid-template-columns: 1fr; }
    .nav-inner { gap: 16px; }
    .nav-search { display: none; }
    .hero-content { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { display: none; }
}
