:root {
    --primary: #c0392b;
    --primary-dark: #a93226;
    --dark: #1a1a2e;
    --dark-alt: #16213e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-hi: 'Noto Sans Devanagari', sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    color: var(--gray-800);
    background: var(--gray-100);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body[data-lang="hi"] {
    font-family: var(--font-hi);
}

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

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 6px 0;
    font-size: 0.8rem;
}

.date-display { opacity: 0.8; }

.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.2s;
}
.lang-btn.active {
    color: var(--white);
    background: var(--primary);
    font-weight: 600;
}
.lang-divider { color: rgba(255,255,255,0.3); }

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--primary);
}

.logo-text { display: flex; flex-direction: column; }

.logo-main {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-600);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-form {
    display: flex;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 8px 14px;
    font-size: 0.9rem;
    width: 250px;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Navigation */
.main-nav {
    background: var(--dark-alt);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
}

.nav-link-item {
    display: block;
    color: rgba(255,255,255,0.85);
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--primary);
}

.nav-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    padding: 10px;
    cursor: pointer;
    display: none;
}

/* Breaking Ticker */
.breaking-ticker {
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 16px 0;
    border-radius: 4px;
}

.ticker-label {
    background: var(--primary-dark);
    padding: 10px 16px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

.ticker-item {
    color: var(--white);
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-item:hover { text-decoration: underline; }

.ticker-sep { padding: 0 8px; opacity: 0.5; }

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

/* Featured Section */
.featured-section { margin: 24px 0; }

.featured-card { border-radius: 8px; overflow: hidden; }

.featured-img {
    height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--white);
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 10px 0;
}

.featured-summary {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Article Category Badge */
.article-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
}

.article-category-sm {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.article-meta i { margin-right: 4px; }

/* Sidebar */
.sidebar-stories { background: var(--white); border-radius: 8px; padding: 20px; }

.sidebar-card {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-card:last-child { border-bottom: none; }

.sidebar-img {
    width: 90px;
    height: 70px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 4px 0;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-time {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.article-time i { margin-right: 3px; }

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.section-title i {
    color: var(--primary);
    margin-right: 6px;
}

/* News Cards */
.latest-section { margin: 40px 0; }

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.news-card a { display: flex; flex-direction: column; height: 100%; }

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-img .article-category {
    position: absolute;
    top: 12px;
    left: 12px;
}

.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body .article-meta { margin-top: auto; color: var(--gray-600); }

/* Most Read */
.most-read-box {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 70px;
}

.most-read-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.most-read-item:last-child { border-bottom: none; }

.most-read-rank {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    min-width: 28px;
}

.most-read-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.most-read-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.most-read-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-read-item:hover .most-read-title { color: var(--primary); }

/* Category Sections */
.category-section {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.view-all-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.view-all-link:hover { text-decoration: underline; }

/* X/Twitter Quote Blocks */
.x-quote {
    background: #f7f9fa;
    border-left: 4px solid #1da1f2;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-style: normal;
}

.x-quote p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.x-quote cite {
    font-size: 0.8rem;
    color: #1da1f2;
    font-style: normal;
    font-weight: 600;
}

.x-quote cite::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z' fill='%231da1f2'/%3E%3C/svg%3E") no-repeat center;
    vertical-align: middle;
    margin-right: 6px;
}

.article-sources {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 24px;
}

/* X Trends Section */
.x-trends-section {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.x-trend-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.x-trend-card-inner {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.x-trend-card:hover .x-trend-card-inner {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #1da1f2;
}

.x-trend-category {
    background: #0f0f0f;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.x-trend-buzz {
    color: #1da1f2;
    font-size: 0.75rem;
    font-weight: 600;
}

.x-trend-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0;
    color: var(--dark);
}

.x-trend-summary {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.x-trend-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.x-trend-footer i { margin-right: 4px; }

/* X Post Cards */
.x-posts-section { margin: 30px 0; }

.x-post-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.x-post-card:hover { border-color: #1da1f2; }

.x-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.x-post-author { display: flex; align-items: center; gap: 10px; }

.x-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1da1f2, #0d8ecf);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.x-post-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    display: block;
}

.x-post-handle {
    font-size: 0.8rem;
    color: var(--gray-600);
    display: block;
}

.x-post-logo {
    font-size: 1.2rem;
    color: var(--dark);
}

.x-post-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.x-post-engagement {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.x-post-link {
    font-size: 0.8rem;
    color: #1da1f2;
    font-weight: 600;
}

.x-post-link:hover { text-decoration: underline; }

/* AI Image Badge */
.ai-image-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ai-image-badge i { margin-right: 3px; }

/* Article Page */
.article-page { max-width: 800px; margin: 0 auto; padding: 20px 0 60px; }

.article-breadcrumb { margin-bottom: 20px; }
.article-breadcrumb .breadcrumb-item a { color: var(--primary); }
.article-breadcrumb .breadcrumb-item.active {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.article-header { margin-bottom: 24px; }

.article-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 12px 0;
    color: var(--dark);
}

.article-summary-text {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta-full {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.article-meta-full i { margin-right: 6px; color: var(--primary); }

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.article-share a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border-radius: 50%;
    color: var(--gray-800);
    transition: all 0.2s;
}

.article-share a:hover { background: var(--primary); color: var(--white); }

.article-hero-img { margin: 24px 0; border-radius: 8px; overflow: hidden; }
.article-hero-img img { width: 100%; height: auto; display: block; }

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.article-body p { margin-bottom: 1.2em; }

/* Category Page */
.category-page { padding: 20px 0 60px; }
.category-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

/* About Page */
.about-page { max-width: 800px; margin: 0 auto; padding: 20px 0 60px; }
.about-page h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}
.about-content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-brand .logo-icon { font-size: 1.6rem; color: var(--primary); }
.footer-brand .logo-main { font-size: 1.3rem; font-weight: 900; letter-spacing: 2px; }

.footer-desc { font-size: 0.9rem; line-height: 1.6; opacity: 0.7; }

.footer-heading {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--white); }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: background 0.2s;
}
.social-links a:hover { background: var(--primary); }

.newsletter-form {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}
.newsletter-form input {
    border: none;
    padding: 10px 14px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}
.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 32px;
    font-size: 0.85rem;
}

.footer-bottom p { margin: 0; opacity: 0.6; }

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { opacity: 0.6; transition: opacity 0.2s; }
.footer-bottom-links a:hover { opacity: 1; }

/* Responsive */
@media (max-width: 991px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--dark-alt);
    }
    .nav-links.show { display: flex; }
    .nav-link-item { border-bottom-color: transparent; }
    .featured-img { height: 350px; }
    .featured-title { font-size: 1.4rem; }
    .article-title { font-size: 1.6rem; }
}

@media (max-width: 575px) {
    .logo-main { font-size: 1.3rem; }
    .featured-img { height: 280px; }
    .featured-title { font-size: 1.2rem; }
    .featured-summary { display: none; }
    .article-title { font-size: 1.4rem; }
    .article-meta-full { flex-direction: column; gap: 6px; }
}
