/*
Theme Name: Mahadev News
Theme URI: https://example.com/mahadev
Author: Gemini WP Expert
Author URI: https://example.com
Description: Bilingual News Theme with Dynamic RSS Admin Management. Based on NewsForIndia design.
Version: 1.0
*/

:root {
  --primary: #006E6D;
  --primary-dark: #005555;
  --dark: #1a1a1a;
  --gray: #666;
  --gray-light: #999;
  --bg-light: #f9f9f9;
  --border: #e5e5e5;
  --ticker-bg: #2c2c2c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg-light);
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  padding: 20px 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.site-title {
  font-size: 56px;
  font-weight: 900;
  margin: 0;
  font-family: Georgia, serif;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.site-title a {
  color: var(--dark);
  text-decoration: none;
}

.site-description {
  font-size: 14px;
  color: var(--gray);
  margin-top: 8px;
  font-style: italic;
  font-family: Georgia, serif;
}

/* Header Ad Zone */
.header-ad-widget {
  max-width: 728px;
  margin: 20px auto;
  min-height: 90px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Breaking News Ticker */
.breaking-ticker {
  background: var(--ticker-bg);
  color: white;
  padding: 12px 0;
  overflow: hidden;
}

.ticker-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--primary);
  padding: 6px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-right: 20px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
}

.ticker-items {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  white-space: nowrap;
  padding-right: 60px;
  font-size: 15px;
}

.ticker-item a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.ticker-item a:hover {
  opacity: 0.8;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Content Wrapper with Sidebar */
.main-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 30px;
}

.main-content {
  min-width: 0;
  background: white;
  padding: 40px;
  border-radius: 4px;
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

/* Sidebar Ad Widget */
.sidebar-ad-widget {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  min-height: 250px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px;
}

/* Hero Slider */
.hero-slider {
  margin-bottom: 40px;
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 50px;
  color: white;
}

.slide-category {
  display: inline-block;
  background: var(--primary);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-radius: 3px;
}

.slide-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: Georgia, serif;
  line-height: 1.2;
}

.slide-title a {
  color: white;
  text-decoration: none;
}

.slide-excerpt {
  font-size: 18px;
  opacity: 0.95;
  max-width: 700px;
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 2;
  display: flex;
  gap: 12px;
}

.slider-btn {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.5);
  transform: scale(1.1);
}

/* Inline Ad Widget */
.inline-ad-widget {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  min-height: 250px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px;
}

/* Category Section */
.category-section {
  margin: 60px 0;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.category-header {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  color: var(--dark);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-light);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.card-category {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: Georgia, serif;
  line-height: 1.4;
}

.card-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-meta {
  font-size: 13px;
  color: var(--gray-light);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  background: #333;
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-top: 0;
}

.site-footer p {
  margin: 8px 0;
  font-size: 14px;
}

/* Admin Notice */
.admin-notice {
  background: #fff9c4;
  border: 2px solid #f9a825;
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-title { font-size: 36px; }
  .hero-slider { height: 400px; }
  .slide-content { padding: 30px 20px; }
  .slide-title { font-size: 28px; }
  .slide-excerpt { font-size: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .category-header { font-size: 24px; }
  .ticker-label { display: none; }
  .main-content { padding: 20px; }
}