/*
Theme Name: Yuva Neta
Theme URI: https://yuvaneta.com
Author: Yuva Neta Team
Author URI: https://yuvaneta.com
Description: Modern Marathi Weekly Newspaper Theme with Digital + Newspaper Flip Mode. Easy content management, city-wise Maharashtra news, YouTube support, content protection (no text selection) and smooth animations. Perfect for Yuva Neta Saptahik from Pune.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuva-neta
Tags: news, newspaper, magazine, marathi, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --primary: #c41e3a;
  --secondary: #1a365d;
  --accent: #f6ad55;
  --dark: #1a202c;
  --light: #f7fafc;
  --paper: #f5f0e6;
  --gray: #718096;
}

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

/* Content Protection - Disable text selection */
body,
.entry-content,
article,
.post-content,
.news-item,
.news-card,
.featured-news {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

body {
  font-family: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== HEADER ========== */
.site-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #2c5282 50%, var(--primary) 100%);
  color: white;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 20px;
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo a {
  color: white;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

/* Mode Toggle */
.mode-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 5px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.mode-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 40px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.mode-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.mode-btn:hover:not(.active) {
  background: rgba(255,255,255,0.15);
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
  width: 100%;
}

/* ========== TICKER ========== */
.ticker {
  background: var(--primary);
  color: white;
  padding: 9px 0;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.ticker-inner span {
  padding-right: 60px;
}

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

/* ========== DIGITAL MODE ========== */
.digital-mode .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.featured-news {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-news:hover {
  transform: translateY(-6px);
}

.featured-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 40px 30px 28px;
  color: white;
}

.featured-overlay h2 {
  font-size: 1.65rem;
  line-height: 1.35;
  margin: 8px 0 10px;
  font-weight: 700;
}

.featured-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

.city-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Side news */
.side-news .news-card {
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  height: auto;
}

.side-news .news-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.side-news .news-card-body {
  padding: 6px 0;
}

.side-news .news-card h4 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: 4px;
}

/* City Sections */
.city-section {
  margin-bottom: 52px;
}

.section-title {
  font-size: 1.55rem;
  color: var(--secondary);
  border-left: 5px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.news-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}

.news-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

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

.news-card-body h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 8px 0 10px;
  font-weight: 700;
  color: var(--dark);
}

.news-card-body p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
  margin-top: auto;
}

/* YouTube */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  margin: 10px 0 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== NEWSPAPER FLIP MODE ========== */
.newspaper-mode {
  background: #1a202c;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px 50px;
}

.newspaper-mode .mode-info {
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

#flipbook {
  width: 900px;
  height: 600px;
  margin: 0 auto;
  box-shadow: 0 15px 50px rgba(0,0,0,0.55);
}

#flipbook .page {
  background-color: var(--paper);
  background-image: 
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 36px 42px;
  font-family: 'Noto Serif Devanagari', 'Georgia', serif;
  color: #2d3748;
  overflow: hidden;
}

#flipbook .page.hard {
  background: linear-gradient(145deg, #e8e0d0, #f5f0e6);
}

.page-header {
  text-align: center;
  border-bottom: 3px double #2d3748;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.page-title {
  font-size: 2.4rem;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #4a5568;
  margin-top: 4px;
}

.flip-news-item {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.flip-news-item:last-child {
  border-bottom: none;
}

.flip-news-item h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 6px;
  font-weight: 700;
}

.flip-news-item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a5568;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: #a0aec0;
  padding: 55px 0 25px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 35px;
  padding: 0 20px;
}

.footer-grid h3,
.footer-grid h4 {
  color: white;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: #a0aec0;
  transition: color 0.25s;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid #2d3748;
  font-size: 0.9rem;
  color: #718096;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ========== PAGE CONTENT ========== */
.page-content {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-content h1 {
  font-size: 2.1rem;
  color: var(--secondary);
  margin-bottom: 20px;
  border-left: 5px solid var(--primary);
  padding-left: 16px;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .featured-news {
    height: 360px;
  }
  #flipbook {
    width: 95vw;
    height: 55vh;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .logo {
    font-size: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .featured-overlay h2 {
    font-size: 1.3rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  #flipbook {
    width: 100%;
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .mode-btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
