/*
Theme Name: Shree Dungargarh News
Theme URI: https://sridungargarhnews.com
Author: Ratanlal Raika
Description: A premium, ultra-fast mobile-first swipeable news portal theme.
Version: 1.0
Tags: mobile, news, swipe, dynamic
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* बाहरी स्क्रीन का स्क्रॉल लॉक */
    background-color: #fff;
}

/* 1. हेडर और कैटेगरी बार (फिक्स्ड टॉप) */
.fixed-top-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    height: 55px;
}

.logo-box {
    font-size: 18px;
    font-weight: bold;
    color: #d63031;
    display: flex;
    align-items: center;
}
.logo-box span, .logo-box a {
    border: 2px solid #d63031;
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
    color: #d63031;
}
.logo-box img {
    max-height: 40px;
    width: auto;
}

.header-icons {
    display: flex;
    gap: 15px;
}
.header-icons svg {
    width: 22px;
    height: 22px;
    fill: #555;
}

/* स्लाइडिंग कैटेगरी पट्टी (मक्खन जैसा लेफ्ट-राइट स्क्रॉलर सिस्टम) */
.category-bar {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden; /* वर्टिकल हिलना-डुलना रोकने के लिए */
    white-space: nowrap;
    padding: 0 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    gap: 18px;
    height: 45px; /* मोबाइल टच के लिए परफेक्ट हाइट */
    align-items: center;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS Safari पर स्मूथ स्क्रॉलिंग */
    scrollbar-width: none; /* Firefox में स्क्रॉलबार छुपाने के लिए */
    -ms-overflow-style: none; /* IE और Edge में स्क्रॉलबार छुपाने के लिए */
}

/* Chrome, Safari और Android के लिए स्क्रॉलबार छुपाने का नियम */
.category-bar::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    text-decoration: none;
    flex-shrink: 0; /* कैटेगरी बटनों को सिकुड़ने से रोकने के लिए */
    padding: 5px 4px;
    transition: color 0.2s ease;
}

/* एक्टिव कैटेगरी और होवर का खूबसूरत लाल कलर */
.cat-item.active, .cat-item:hover {
    color: #d63031;
}
.cat-item svg {
    width: 14px;
    height: 14px;
    fill: currentColor; /* आइकॉन का कलर भी टेक्स्ट के साथ ऑटोमैटिक बदलेगा */
}

/* 2. मुख्य स्वाइपर (न्यूज़ एरिया) */
.main-news-slider {
    position: fixed;
    top: 100px;    /* हेडर (55px) + कैटेगरी बार (45px) = 100px परफेक्ट मैच */
    bottom: 95px;  /* टिकर + बॉटम नेव */
    left: 0;
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    background: #f5f5f5;
}
.main-news-slider::-webkit-scrollbar {
    display: none;
}

.full-news-page {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    overflow-y: auto;
    background: #fff;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

.news-title {
    font-size: 19px;
    font-weight: bold;
    color: #000;
    line-height: 1.4;
    margin-bottom: 12px;
}
.news-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    object-fit: cover;
}
.news-image:empty {
    display: none; /* अगर फोटो न हो तो खाली जगह न घेरे */
}
.news-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}
.news-content p {
    margin-bottom: 15px;
}
.swipe-hint {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin: 20px 0;
}

/* 3. फुटर एरिया (टिकर + बॉटम मेनू) */
.fixed-bottom-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.revolutionary-ticker {
    height: 35px;
    background: #222;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}
.ticker-wrap {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}
.revolutionary-ticker:active .ticker-wrap {
    animation-play-state: paused;
}
.fighter-tag {
    display: inline-flex;
    align-items: center;
    margin-right: 35px;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 15px;
}
.fighter-tag img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 6px;
}

/* बॉटम नेविगेशन मेनू */
.bottom-nav {
    display: flex;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #7f8c8d; /* डिफ़ॉल्ट बिना एक्टिवेट वाला ग्रे रंग */
    font-size: 12px;
    font-weight: bold;
    gap: 4px;
    transition: color 0.2s ease, transform 0.1s ease;
}
.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor; /* सुपर ट्रिक: यह SVG का रंग हमेशा टेक्स्ट कलर के समान रखता है */
    transition: fill 0.2s ease;
}

/* एक्टिव मेनू का फिक्स कलर (आइकॉन और टेक्स्ट दोनों अब ब्रांडेड लाल रंग में चमकेंगे) */
.nav-item.active {
    color: #d63031 !important;
}

/* मोबाइल ऐप जैसा क्लिक फीडबैक इफेक्ट */
.nav-item:active {
    transform: scale(0.94); 
}

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


