/*
Theme Name: Hello Doon
Theme URI: https://hellodoon.com
Author: Hello Doon
Author URI: https://hellodoon.com
Description: A hyperlocal newspaper theme for Dehradun city — hellodoon.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hellodoon
Tags: news, blog, newspaper, local, magazine
*/

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2d5a27;
  --green-dark:  #1e3d1a;
  --green-light: #3d7a35;
  --cream:       #f8f4ed;
  --cream-dark:  #ede8df;
  --gold:        #c8973a;
  --gold-light:  #e0b060;
  --charcoal:    #1e1e1e;
  --gray:        #6b6b6b;
  --gray-light:  #d4d0c8;
  --white:       #ffffff;
  --red:         #c0392b;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --max-width:   1200px;
  --radius:      4px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--charcoal);
}

/* ===================================================
   TOP BAR
=================================================== */
.top-bar {
  background: var(--green-dark);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-date { opacity: 0.8; }

.top-bar-links a {
  margin-left: 16px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.top-bar-links a:hover { opacity: 1; color: var(--gold-light); }

/* ===================================================
   SITE HEADER
=================================================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  padding: 20px 0 0;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream-dark);
  flex-wrap: wrap;
  gap: 12px;
}

.site-logo {
  display: flex;
  flex-direction: column;
}

.site-logo .logo-main {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -1px;
  line-height: 1;
}

.site-logo .logo-main span {
  color: var(--gold);
}

.site-logo .logo-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: 4px;
}

.header-weather {
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
}

.header-weather .temp {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--green);
  display: block;
}

/* ===================================================
   PRIMARY NAV
=================================================== */
.primary-nav {
  background: var(--green);
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
}

.primary-nav ul li a {
  display: block;
  padding: 12px 18px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: background 0.2s;
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item a {
  background: var(--green-dark);
  color: var(--gold-light);
}

/* ===================================================
   BREAKING NEWS TICKER
=================================================== */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 0.82rem;
  height: 34px;
}

.breaking-label {
  background: var(--charcoal);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 100%;
}

.ticker-content a {
  color: var(--white);
  margin-right: 60px;
}

.ticker-content a:hover { text-decoration: underline; }

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

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  padding: 32px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* Main featured story */
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-main .hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-image { transform: scale(1.02); }

.hero-main .hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 32px 24px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero-category-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.hero-main .hero-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-main .hero-title a { color: var(--white); }
.hero-main .hero-title a:hover { color: var(--gold-light); }

.hero-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

/* Side stories */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-story {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: box-shadow 0.2s;
}

.side-story:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.side-story .side-image {
  width: 100px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.side-story-content {
  padding: 10px 12px 10px 0;
}

.side-story-content .story-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 4px;
}

.side-story-content h3 {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--charcoal);
}

.side-story-content h3 a:hover { color: var(--green); }

.side-story-content .story-date {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 5px;
}

/* ===================================================
   SECTION HEADINGS
=================================================== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--green-dark);
  white-space: nowrap;
}

.section-heading .heading-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--green), transparent);
}

.section-heading .view-all {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid var(--green);
  padding: 4px 10px;
  border-radius: 2px;
  transition: all 0.2s;
}

.section-heading .view-all:hover {
  background: var(--green);
  color: var(--white);
}

/* ===================================================
   CATEGORY STRIP
=================================================== */
.category-strip {
  padding: 28px 0;
  border-top: 1px solid var(--cream-dark);
}

/* ===================================================
   ARTICLE CARDS GRID
=================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.article-card .card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body { padding: 16px; }

.card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.card-title a:hover { color: var(--green); }

.card-excerpt {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray);
  border-top: 1px solid var(--cream-dark);
  padding-top: 10px;
}

.card-author { font-weight: 500; }

/* ===================================================
   FEATURED STRIP — full-width highlight
=================================================== */
.featured-strip {
  background: var(--green-dark);
  padding: 40px 0;
  margin: 8px 0;
}

.featured-strip .section-heading h2 { color: var(--white); }
.featured-strip .heading-line { background: linear-gradient(to right, var(--gold), transparent); }
.featured-strip .view-all { color: var(--gold-light); border-color: var(--gold-light); }
.featured-strip .view-all:hover { background: var(--gold-light); color: var(--charcoal); }

.featured-strip .article-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}

.featured-strip .card-title,
.featured-strip .card-category { color: var(--gold-light); }
.featured-strip .card-title a { color: var(--white); }
.featured-strip .card-title a:hover { color: var(--gold-light); }
.featured-strip .card-excerpt { color: rgba(255,255,255,0.65); }
.featured-strip .card-meta { color: rgba(255,255,255,0.45); border-color: rgba(255,255,255,0.12); }

/* ===================================================
   LOCAL SPOTLIGHT
=================================================== */
.spotlight-section {
  padding: 32px 0;
  border-top: 1px solid var(--cream-dark);
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  background: var(--white);
}

.spotlight-card .spotlight-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.spotlight-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

.spotlight-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.spotlight-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-read-more {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 2px;
  transition: background 0.2s;
  width: fit-content;
}

.btn-read-more:hover { background: var(--green-dark); }

/* ===================================================
   NEWSLETTER SIGNUP
=================================================== */
.newsletter-section {
  background: var(--cream-dark);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 36px 0;
  text-align: center;
}

.newsletter-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.newsletter-section p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.88rem;
  border: none;
  outline: none;
  background: var(--white);
  font-family: var(--font-sans);
}

.newsletter-form button {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--green-dark); }

/* ===================================================
   SITE FOOTER
=================================================== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-main {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
}

.footer-brand .logo-main span { color: var(--gold); }

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 10px;
  line-height: 1.65;
  opacity: 0.7;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

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

.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ===================================================
   SINGLE POST
=================================================== */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 36px 0;
}

.post-header { margin-bottom: 24px; }

.post-category-tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--gray);
  border-bottom: 2px solid var(--cream-dark);
  padding-bottom: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta span { display: flex; align-items: center; gap: 4px; }

.post-featured-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.post-content p { margin-bottom: 20px; }
.post-content h2, .post-content h3 {
  font-family: var(--font-serif);
  margin: 28px 0 12px;
  color: var(--green-dark);
}

.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  background: var(--cream);
  font-style: italic;
  color: var(--gray);
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Sidebar */
.post-sidebar {}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-dark);
}

.sidebar-post {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cream-dark);
}

.sidebar-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-post img {
  width: 70px;
  height: 56px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.sidebar-post h5 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--charcoal);
}

.sidebar-post h5 a:hover { color: var(--green); }
.sidebar-post .s-date { font-size: 0.72rem; color: var(--gray); margin-top: 4px; }

/* ===================================================
   ARCHIVE / CATEGORY PAGE
=================================================== */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 36px 0;
}

.archive-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--green);
}

.archive-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--green-dark);
}

.archive-header p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
}

.archive-list { display: flex; flex-direction: column; gap: 20px; }

.archive-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.archive-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.archive-item .archive-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
}

.archive-item-content {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-item-content .item-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 6px;
}

.archive-item-content h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.archive-item-content h2 a:hover { color: var(--green); }

.archive-item-content .item-excerpt {
  font-size: 0.85rem;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-item-content .item-meta {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 10px;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  justify-content: center;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--charcoal);
  background: var(--white);
  transition: all 0.2s;
}

.pagination a:hover, .pagination .current {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ===================================================
   UTILITY CLASSES
=================================================== */
.no-image-placeholder {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.78rem;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .hero-grid            { grid-template-columns: 1fr; }
  .hero-sidebar         { flex-direction: row; flex-wrap: wrap; }
  .side-story           { flex: 1 1 calc(50% - 8px); }
  .footer-grid          { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-logo .logo-main  { font-size: 2rem; }
  .articles-grid         { grid-template-columns: 1fr 1fr; }
  .single-layout,
  .archive-layout        { grid-template-columns: 1fr; }
  .post-sidebar          { display: none; }
  .spotlight-card        { grid-template-columns: 1fr; }
  .spotlight-card .spotlight-image { height: 220px; }
  .archive-item .archive-image { width: 130px; height: 110px; }
  .footer-grid           { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 540px) {
  .articles-grid         { grid-template-columns: 1fr; }
  .hero-main .hero-image { height: 260px; }
  .hero-main .hero-title { font-size: 1.4rem; }
  .post-title            { font-size: 1.6rem; }
  .primary-nav ul        { overflow-x: auto; flex-wrap: nowrap; }
  .primary-nav ul li a   { padding: 10px 14px; }
  .side-story            { flex: 1 1 100%; }
  .newsletter-form       { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form input[type="email"],
  .newsletter-form button { border-radius: var(--radius); }
}
