/* Janta Headline - Custom Styling & Typography (Aaj Tak Authority News Theme) */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700;800;900&family=Rozha+One&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-red: #e21b22;
    --primary-dark: #b91c1c;
    --primary-accent: #ff4757;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
}

body {
    font-family: 'Mukta', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111827;
    background-color: #f1f5f9;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.headline-font {
    font-family: 'Mukta', sans-serif;
    font-weight: 800;
    line-height: 1.25;
}

.serif-headline {
    font-family: 'Rozha One', 'Mukta', serif;
}

/* Pulsing Red Live Badge */
.live-pulse {
    position: relative;
    display: inline-block;
}

.live-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ef4444;
    animation: live-pulse-animation 1.6s infinite ease-out;
    opacity: 0.75;
}

@keyframes live-pulse-animation {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0.2; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Breaking Ticker */
.breaking-badge {
    background: linear-gradient(135deg, #e21b22, #b91c1c);
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.breaking-news-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.breaking-news-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-slide 28s linear infinite;
}

.breaking-news-container:hover .breaking-news-track {
    animation-play-state: paused;
}

@keyframes ticker-slide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Section Header Bar with Angle Cut */
.section-title-badge {
    background: linear-gradient(90deg, #e21b22, #b91c1c);
    color: #ffffff;
    font-weight: 800;
    padding: 0.35rem 1rem;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    display: inline-flex;
    align-items: center;
}

/* Image Zoom Hover */
.news-img-box {
    overflow: hidden;
    position: relative;
}

.news-img-box img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-img-box img {
    transform: scale(1.06);
}

/* Article Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #e21b22, #f59e0b);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Category Pill Styling */
.cat-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Timeline in Live Blog */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -19px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-red);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(226, 27, 34, 0.3);
}

.dark .timeline-item::before {
    border-color: #1f2937;
}

/* Video Play Overlay */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(226, 27, 34, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-card:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: #e21b22;
}

/* Audio Player Animation */
.audio-playing-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.audio-bar {
    width: 3px;
    background-color: var(--primary-red);
    animation: sound-bars 1s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.audio-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.audio-bar:nth-child(4) { height: 16px; animation-delay: 0.4s; }

@keyframes sound-bars {
    0% { height: 4px; }
    100% { height: 16px; }
}

/* Cricket Scorecard Widget */
.cricket-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-left: 4px solid #059669;
}

/* Fact Check Stamps */
.stamp-fake {
    border: 2px dashed #ef4444;
    color: #ef4444;
    padding: 2px 8px;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-3deg);
    display: inline-block;
}

.stamp-true {
    border: 2px dashed #10b981;
    color: #10b981;
    padding: 2px 8px;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-3deg);
    display: inline-block;
}

/* Tab Switching Active State */
.city-tab-btn.active {
    background-color: #e21b22 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(226, 27, 34, 0.4);
}

/* 1. Interactive E-Paper Mockup Sheet */
.epaper-page-sheet {
    background-color: #fdfbf7;
    background-image: radial-gradient(#e5e7eb 0.75px, transparent 0.75px);
    background-size: 12px 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-family: 'Mukta', serif;
}

.dark .epaper-page-sheet {
    background-color: #1e293b;
    background-image: radial-gradient(#334155 0.75px, transparent 0.75px);
}

/* 2. Interactive News Shorts Modal */
.shorts-card {
    height: calc(100vh - 120px);
    max-height: 680px;
    scroll-snap-align: start;
}

/* 3. Quiz Feedback Animations */
@keyframes quiz-correct {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); background-color: #10b981; color: white; }
    100% { transform: scale(1); background-color: #059669; color: white; }
}

@keyframes quiz-wrong {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); background-color: #ef4444; color: white; }
    40%, 80% { transform: translateX(6px); background-color: #ef4444; color: white; }
}

.quiz-btn-correct {
    animation: quiz-correct 0.4s ease forwards !important;
    border-color: #059669 !important;
}

.quiz-btn-wrong {
    animation: quiz-wrong 0.4s ease forwards !important;
    border-color: #ef4444 !important;
}

/* 4. Bookmark Heart Pulse */
.bookmark-btn.saved i {
    color: #e21b22;
    transform: scale(1.15);
    font-weight: 900;
}

/* 5. Floating Action News Short Button */
.floating-shorts-pill {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 45;
    box-shadow: 0 10px 20px rgba(226, 27, 34, 0.4);
    animation: bounce-subtle 3s infinite ease-in-out;
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Mobile Bottom Navigation */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
}
