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

:root {
    --primary: #c41e24;
    --primary-dark: #9e141a;
    --secondary: #0d233a;
    --accent: #e65100;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --breaking-bg: #d90429;
    --success: #2b9348;
    --warning: #e85d04;
    --font-heading: 'Mukta', sans-serif;
    --font-brand: 'Yatra One', cursive;
    --font-body: 'Mukta', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar */
.top-bar {
    background-color: var(--secondary);
    color: #cbd5e1;
    /* font-size: 0.85rem; small class*/
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: #e2e8f0;
    margin-left: 15px;
    font-weight: 500;
}

.top-bar-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Breaking Ticker */
.breaking-bar {
    background: #fff0f1;
    border-bottom: 1px solid #ffccd5;
    overflow: hidden;
}

.breaking-label {
    background: var(--breaking-bg);
    color: #ffffff;
    font-weight: 700;
    /* font-size: 0.85rem; small */
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.breaking-items {
    display: flex;
    align-items: center;
    padding-left: 15px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.breaking-items::-webkit-scrollbar {
    display: none;
}

.breaking-item {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    /* font-size: 0.92rem; */
    color: #800000;
    font-weight: 600;
}

.breaking-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
}

/* Main Header */
.main-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-box {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-brand);
    color: var(--primary);
    line-height: 1;
    letter-spacing: 1px;
}

.brand-tagline {
    /* font-size: 0.95rem; */
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.header-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 14px;
    /* font-size: 0.82rem; */
    text-align: right;
    color: #475569;
}

.badge-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main Navigation */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    /* font-size: 1.05rem; */
    color: var(--secondary);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: #ffffff;
}

/* News Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 25px;
    margin-top: 25px;
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero / Lead Story */
.lead-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.lead-content {
    padding: 24px;
}

.lead-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    /* font-size: 0.8rem; */
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.lead-title {
    /* font-size: 2.1rem; */
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #111827;
}

.lead-summary {
    /* font-size: 1.15rem; */
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.6;
}

.lead-meta {
    /* font-size: 0.85rem; */   
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    font-weight: 500;
}

/* News Grid Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.news-category-badge {
    /* font-size: 0.78rem; */
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.news-card-title {
    /* font-size: 1.25rem; */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1f2937;
}

.news-card-summary {
    /* font-size: 0.95rem; */
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.news-card-footer {
    /* font-size: 0.8rem; */
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}

/* Sidebar Widgets */
.sidebar-box {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-title {
    /* font-size: 1.2rem; */
    font-weight: 800;
    color: var(--secondary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 16px;
}

/* Fact Check List */
.fact-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.fact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fact-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    /* font-size: 0.75rem; */
    font-weight: 800;
    margin-bottom: 6px;
}

.verdict-फर्जी {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.verdict-भ्रामक {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fbbf24;
}

.verdict-सच {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.fact-claim {
    font-weight: 700;
    /* font-size: 0.98rem; */
    color: #111827;
    margin-bottom: 4px;
}

.fact-summary {
    /* font-size: 0.88rem; */
    color: #4b5563;
}

/* 10x Team Showcase Card */
.team-member-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--secondary);
    /* font-size: 1.1rem;  */
    flex-shrink: 0;
}

.team-info-name {
    font-weight: 700;
    /* font-size: 0.92rem; */
    color: #1e293b;
}

.team-info-role {
    /* font-size: 0.78rem; */
    color: var(--primary);
    font-weight: 600;
}

.team-info-bio {
    /* font-size: 0.8rem; */
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

/* Article Detail View */
.article-header {
    /* margin-bottom: 20px; */
}

.article-headline {
    /* font-size: 2.5rem; */
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 12px 0;
}

.article-summary-lead {
    /* font-size: 1.25rem; */
    font-weight: 500;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    /* font-size: 0.88rem; */
    color: #64748b;
}

.article-body {
    /* font-size: 1.2rem; */
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 40px;
}

.article-body p {
    margin-bottom: 20px;
}

/* Admin / Editorial Desk */
.admin-badge {
    padding: 3px 8px;
    border-radius: 4px;
    /* font-size: 0.75rem; */
    font-weight: 700;
}

.badge-draft { background: #e2e8f0; color: #475569; }
.badge-review { background: #fef3c7; color: #b45309; }
.badge-fact_checked { background: #e0e7ff; color: #4338ca; }
.badge-published { background: #dcfce7; color: #15803d; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-number {
    /* font-size: 2rem; */
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    /* font-size: 0.85rem; */
    color: var(--text-muted);
    font-weight: 600;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.admin-table th, .admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    /* font-size: 0.92rem; */
}

.admin-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #1e293b;
    /* font-size: 0.95rem; */
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    /* font-size: 1rem; */
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.15);
}

.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 700;
    /* font-size: 0.95rem; */
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-sm {
    padding: 5px 10px;
    /* font-size: 0.8rem; */
}

/* Footer */
.main-footer {
    background: var(--secondary);
    color: #94a3b8;
    margin-top: 50px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    font-family: var(--font-brand);
    /* font-size: 2.2rem; */
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* font-size: 0.85rem; */
    display: flex;
    justify-content: space-between;
}
