/*
Theme Name: PRASHANT SUMAN
Theme URI: https://www.prashantsuman.com
Author: Prashant Suman
Author URI: https://www.prashantsuman.com
Description: सच की आवाज़, जनता के साथ – प्रीमियम हिंदी न्यूज़ थीम। मोबाइल, टैब और डेस्कटॉप सभी के लिए पूरी तरह रिस्पॉन्सिव।
Version: 2.0
License: GPL v2 or later
Text Domain: prashant-suman
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Poppins:wght@600;700;800&family=Noto+Sans+Devanagari:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --text: #333333;
    --heading: #14213d;
    --red: #e63946;
    --dark: #0f172a;
    --border: #e9ecef;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --transition: 0.3s;
    --font-heading: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    --font-body: 'Hind', 'Noto Sans Devanagari', sans-serif;
}

/* Dark Mode */
body.dark {
    --bg: #1a1a2e;
    --card-bg: #16213e;
    --text: #e0e0e0;
    --heading: #ff6b6b;
    --border: #2a2a4a;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--heading); line-height: 1.3; }

/* Lazy Load Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Section Title */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--red);
    opacity: 0.5;
}

/* Category Label */
.cat-label {
    background: var(--red);
    color: #fff;
    padding: 5px 14px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    display: inline-block;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

/* Breaking News */
.breaking-bar {
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    padding: 8px 0;
}
body.dark .breaking-bar { background: #2a1f1f; border-color: #3d2a2a; }
.breaking-inner { display: flex; align-items: center; gap: 12px; }
.breaking-badge {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 0.7em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.breaking-move { flex: 1; overflow: hidden; white-space: nowrap; }
.breaking-content {
    display: inline-block;
    animation: breakingScroll 25s linear infinite;
    padding-left: 100%;
}
.breaking-content span {
    display: inline-block;
    padding-right: 35px;
    font-weight: 500;
    font-size: 0.9em;
}
@keyframes breakingScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Top Bar */
.header-top {
    background: var(--dark);
    color: #ccc;
    padding: 6px 0;
    font-size: 0.8em;
    border-bottom: 1px solid #1e293b;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.header-date { opacity: 0.8; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-social { display: flex; align-items: center; gap: 10px; }
.header-social a { color: #ccc; font-size: 0.9em; transition: color 0.2s; display: flex; align-items: center; }
.header-social a:hover { color: #fff; }

/* Dark Mode Toggle */
.dark-toggle {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1em;
    padding: 2px;
    transition: color 0.2s;
}
.dark-toggle:hover { color: #fff; }

/* YouTube Live Ring */
.youtube-live {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}
.youtube-live .fa-youtube { color: #FF0000; font-size: 1em; z-index: 2; position: relative; }
.youtube-live::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FF0000;
    animation: ringPulse 1.5s ease-in-out infinite;
    z-index: 1;
}
@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; box-shadow: 0 0 4px rgba(255,0,0,0.5); }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; box-shadow: 0 0 16px rgba(255,0,0,0.9); }
}
.youtube-live:hover::before {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Main Header */
.header-main { background: var(--card-bg); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
    transition: padding var(--transition);
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo {
    width: 45px;
    height: 45px;
    background: var(--red);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4em;
    font-family: var(--font-heading);
    transition: all var(--transition);
}
.site-title { font-size: 1.6em; font-weight: 800; transition: font-size var(--transition); }
.site-title a { color: var(--heading); }
.site-description { font-size: 0.75em; opacity: 0.7; }

/* Desktop Navigation */
.desktop-nav {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--red);
    display: block;
}
body.dark .desktop-nav { background: #16213e; }
.desktop-nav ul {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}
.desktop-nav ul li { list-style: none; }
.desktop-nav ul li a {
    display: block;
    padding: 12px 18px;
    color: var(--heading);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.desktop-nav ul li a:hover { color: var(--red); }

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--heading);
}

/* Side Menu (Mobile) */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 3000;
    transition: left var(--transition);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    padding: 20px 15px;
}
body.dark .side-menu { background: #16213e; }
.side-menu.active { left: 0; }
.side-menu .close-menu {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--heading);
    margin-bottom: 30px;
    display: block;
    text-align: right;
}
.side-menu ul { padding: 0; }
.side-menu ul li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1em;
    color: var(--heading);
    font-weight: 600;
    transition: color 0.2s;
}
.side-menu ul li a:hover { color: var(--red); }

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    display: none;
}
.menu-overlay.active { display: block; }

/* Progress Bar */
.header-progress { height: 4px; width: 100%; background: #eee; }
body.dark .header-progress { background: #2a2a4a; }
.header-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--red);
    transition: width 0.1s linear;
}

/* Sticky Header Shrink */
.site-header.scrolled .header-inner { padding: 6px 15px; }
.site-header.scrolled .site-logo { width: 38px; height: 38px; font-size: 1.2em; }
.site-header.scrolled .site-title { font-size: 1.3em; }
.site-header.scrolled .header-progress { height: 3px; }

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}
.search-close:hover { color: var(--red); }
.search-box-wrapper {
    width: 80%;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
body.dark .search-box-wrapper { background: #1e293b; }
.search-box-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 10px;
    font-size: 1.2em;
    font-family: var(--font-heading);
    color: #333;
    background: transparent;
}
body.dark .search-box-wrapper input { color: #fff; }
.search-box-wrapper input::placeholder { color: #aaa; }
.search-box-wrapper button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: background 0.2s;
}
.search-box-wrapper button:hover { background: #c1121f; }

/* ==================== SLIDER ==================== */
.trending-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.slider-viewport { overflow: hidden; border-radius: 10px; }
.slider-track { display: flex; transition: transform 0.5s ease-in-out; }
.slider-card {
    min-width: 100%;
    display: flex;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}
.slider-card img { width: 50%; object-fit: cover; }
.slider-card-content {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slider-card-content h2 { font-size: 1.5em; margin: 10px 0; }
.slider-btn {
    align-self: flex-start;
    padding: 8px 18px;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: background 0.2s;
}
.slider-btn:hover { background: #c1121f; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dot.active { background: var(--red); }

/* ==================== NEWS GRID ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.card-content { padding: 18px; }
.card-content h3 { font-size: 1.05em; margin: 8px 0; line-height: 1.4; }
.card-content h3 a { color: var(--heading); }
.card-content h3 a:hover { color: var(--red); }
.post-meta { font-size: 0.8em; color: #888; margin-top: 5px; }

/* ==================== SINGLE POST ==================== */
.single-page {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.single-content { flex: 2; min-width: 0; }
.single-sidebar {
    flex: 1;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}
.article-plain h1 {
    font-size: 2em;
    margin-bottom: 10px;
    word-break: break-word;
}
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #888;
    margin-bottom: 20px;
    font-size: 0.9em;
}
.meta-line i { margin-right: 4px; }
.featured-img { border-radius: 10px; margin-bottom: 25px; width: 100%; }
.entry-content { font-size: 1.05em; line-height: 1.8; word-wrap: break-word; }
.entry-content p { margin-bottom: 20px; }

/* Ad Placeholder */
.ad-placeholder {
    background: #f0f0f0;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    margin: 25px 0;
    color: #888;
}
body.dark .ad-placeholder { background: #2a2a3a; color: #666; }

/* Share Bar */
.share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.share-bar span { font-weight: 600; margin-right: 5px; }
.share-bar a, .share-bar button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
    color: #555;
}
body.dark .share-bar a, body.dark .share-bar button { background: #1e293b; color: #ccc; }
.share-bar a:hover, .share-bar button:hover { background: var(--red); color: #fff; }

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}
body.dark .author-box { background: #1e293b; }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.author-info h4 { margin-bottom: 5px; font-size: 1.1em; }
.author-info p { font-size: 0.9em; opacity: 0.8; }

/* Related Posts */
.related-posts { margin-top: 40px; }
.related-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 2px solid var(--red);
    padding-bottom: 5px;
    font-family: var(--font-heading);
    color: var(--heading);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.related-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.related-card:hover { transform: translateY(-4px); }
.related-card img { width: 100%; height: 150px; object-fit: cover; }
.related-card-content { padding: 15px; }
.related-card-content h4 { font-size: 0.95em; margin: 5px 0; line-height: 1.4; }
.related-card-content h4 a { color: var(--heading); }
.related-card-content h4 a:hover { color: var(--red); }
.related-date { font-size: 0.8em; color: #888; }

/* ==================== COMMENTS ==================== */
.comments-area {
    margin-top: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}
.comments-title {
    font-family: var(--font-heading);
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--heading);
}
.comment-list { padding: 0; }
.comment-body {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.comment-body:last-child { border-bottom: none; }
.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--red);
}
.comment-content { flex: 1; }
.comment-meta { display: flex; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.comment-author { font-weight: 600; color: var(--heading); }
.comment-date { font-size: 0.8em; color: #888; }
.comment-text p { margin: 5px 0; font-size: 0.95em; }
.comment-reply { margin-top: 8px; }
.comment-reply a { color: var(--red); font-weight: 600; font-size: 0.85em; }
.comment-respond {
    margin-top: 25px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
body.dark .comment-respond { background: #1e293b; }
.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--heading);
}
.comment-form-field { margin-bottom: 10px; }
.comment-form-field input,
.comment-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95em;
    transition: border-color 0.2s;
}
.comment-form-field input:focus,
.comment-form-field textarea:focus {
    border-color: var(--red);
    outline: none;
}
.comment-form-field textarea { height: 100px; resize: vertical; }
.form-submit input[type="submit"] {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95em;
    transition: background 0.2s;
}
.form-submit input[type="submit"]:hover { background: #c1121f; }

/* ==================== SIDEBAR ==================== */
.sidebar-box {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.sidebar-box h3 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--heading);
    border-bottom: 2px solid var(--red);
    padding-bottom: 6px;
    margin-bottom: 15px;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--dark);
    color: #ccc;
    padding: 40px 20px 20px;
    margin-top: 50px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}
.footer-widget h4 { color: #fff; margin-bottom: 12px; font-size: 1.1em; }
.footer-widget p, .footer-widget li { margin-bottom: 8px; font-size: 0.95em; }
.footer-widget a { color: #ccc; transition: color 0.2s; }
.footer-widget a:hover { color: #fff; }
.copyright {
    margin-top: 30px;
    font-size: 0.85em;
    border-top: 1px solid #2c3e50;
    padding-top: 20px;
    text-align: center;
}

/* ==================== BUTTON ==================== */
.submit-btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95em;
    transition: background 0.2s;
}
.submit-btn:hover { background: #c1121f; }

/* ==================== RESPONSIVE ==================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-card { height: 250px; }
    .slider-card-content { padding: 20px; }
    .slider-card-content h2 { font-size: 1.3em; }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    
    /* Header */
    .header-inner { padding: 10px 15px; }
    .site-title { font-size: 1.4em; }
    .site-logo { width: 40px; height: 40px; font-size: 1.2em; }
    .site-description { font-size: 0.7em; }
    
    /* Hide Desktop Nav, Show Mobile */
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    
    /* Breaking */
    .breaking-badge { font-size: 0.65em; padding: 4px 12px; }
    .breaking-content span { font-size: 0.8em; padding-right: 20px; }
    
    /* Slider */
    .slider-card { flex-direction: column; height: auto; }
    .slider-card img { width: 100%; height: 200px; }
    .slider-card-content { width: 100%; padding: 20px; }
    .slider-card-content h2 { font-size: 1.2em; }
    
    /* Grid */
    .news-grid { grid-template-columns: 1fr; gap: 15px; }
    
    /* Single Post */
    .single-page { flex-direction: column; }
    .single-sidebar { position: static; }
    .article-plain h1 { font-size: 1.5em; }
    .entry-content { font-size: 1em; }
    
    /* Share */
    .share-bar { flex-wrap: wrap; gap: 10px; }
    .share-bar a, .share-bar button { width: 40px; height: 40px; font-size: 1.1em; }
    .share-bar span { display: none; }
    
    /* Author */
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    
    /* Related */
    .related-grid { grid-template-columns: 1fr; }
    
    /* Comments */
    .comment-body { flex-direction: column; }
    
    /* Search */
    .search-box-wrapper { width: 90%; }
    .search-box-wrapper input { font-size: 1em; padding: 15px 10px; }
    .search-box-wrapper button { padding: 10px 20px; font-size: 0.9em; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Side Menu */
    .side-menu { width: 260px; left: -280px; }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .site-title { font-size: 1.2em; }
    .article-plain h1 { font-size: 1.3em; }
    .slider-card img { height: 160px; }
    .news-card img { height: 180px; }
}