/*
Theme Name: Barish Weather Theme
Theme URI: https://barishkabhogi.online
Author: BarishKabHogi Desk
Author URI: https://barishkabhogi.online
Description: A premium, ultra-fast, modern, lightweight, and fully responsive WordPress theme specially crafted for Indian rainfall, monsoon forecasting, and weather intelligence portals. Fully compatible with Gutenberg, Rank Math, and Yoast SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: barish-theme
Tags: weather, news, blog, two-columns, full-width-template, custom-menu, featured-images, translation-ready, seo-friendly
*/

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

:root {
  --sky-50: #f0f7ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --navy-900: #0f2744;
  --navy-950: #081626;

  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;

  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(15, 39, 68, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-hindi);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* SVG Vector Icons System */
.svg-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  vertical-align: -0.18em;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.svg-icon-xs { width: 14px; height: 14px; }
.svg-icon-sm { width: 16px; height: 16px; }
.svg-icon-md { width: 20px; height: 20px; }
.svg-icon-lg { width: 28px; height: 28px; }

.brand-logo-svg {
  width: 32px;
  height: 32px;
  stroke: none;
  vertical-align: middle;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-svg-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

a {
  color: var(--sky-700);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--sky-500);
}

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

/* Alert Ticker */
.weather-alert-bar {
  background: linear-gradient(90deg, #1e3a8a, #0369a1);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-ticker-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.alert-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.site-title span {
  color: var(--sky-600);
}

.site-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.main-navigation a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.main-navigation a:hover {
  color: var(--sky-600);
  background: var(--sky-50);
}

/* Search */
.district-search-input {
  width: 260px;
  padding: 9px 14px 9px 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  font-family: var(--font-hindi);
  font-size: 13px;
  outline: none;
}

.district-search-input:focus {
  border-color: var(--sky-500);
  background: #ffffff;
}

/* Hero Section */
.hero-weather-section {
  background: linear-gradient(135deg, #0b1a2d 0%, #0f2b48 50%, #0369a1 100%);
  color: #ffffff;
  padding: 56px 24px 64px;
  position: relative;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-200);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-headline span {
  color: var(--sky-300);
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.hero-finder-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
}

.finder-select {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-family: var(--font-hindi);
  font-size: 13px;
}

.hero-live-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #ffffff;
}

.card-top-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.temp-large-display {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.temp-val {
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 4px;
}

.weather-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

/* Grids & Cards */
.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
}

.section-title span {
  color: var(--sky-600);
}

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

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky-400);
}

.article-card-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 26, 45, 0.85);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

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

.card-meta-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.article-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* Single Article */
.article-page-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.breadcrumb-nav {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-primary-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--sky-600);
  margin-bottom: 24px;
}

.meta-verified-badge {
  background: var(--emerald-100);
  color: #065f46;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11px;
}

.article-featured-image-box {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.article-featured-image-box img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.image-caption-bar {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
}

/* TOC */
.toc-box {
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--sky-800);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 14px;
}

.toc-list a:hover {
  color: var(--sky-600);
  font-weight: 600;
}

/* Article Content Body */
.article-content-body {
  font-size: 16px;
  line-height: 1.85;
}

.article-content-body p {
  margin-bottom: 20px;
}

.article-content-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sky-200);
}

.article-content-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--sky-800);
}

/* Weather Table */
.weather-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.weather-forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-surface);
}

.weather-forecast-table th {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  padding: 12px 14px;
  font-weight: 700;
  text-align: left;
}

.weather-forecast-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.weather-forecast-table tr:hover {
  background: var(--sky-50);
}

/* Internal Link Callout */
.internal-link-callout {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 15px;
}

.ai-internal-link {
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* FAQ Accordion */
.faq-container {
  margin: 36px 0;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  font-size: 14px;
}

.faq-card.open .faq-answer {
  max-height: 300px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border-subtle);
}

/* Footer */
.site-footer {
  background: #081626;
  color: #94a3b8;
  padding: 48px 24px 24px;
  border-top: 1px solid #162c46;
  margin-top: 48px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--sky-400);
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 12px;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-700));
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  color: #ffffff;
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-published {
  background: var(--emerald-100);
  color: #065f46;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .weather-alert-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .header-container {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 10px;
    position: relative;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    color: var(--text-primary);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
  }
  .main-navigation {
    display: none;
  }
  .main-navigation.is-open {
    display: block;
  }
  .main-navigation ul {
    flex-wrap: wrap;
    gap: 2px 4px;
  }
  .main-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
  }
  .header-search,
  .header-search .search-form {
    width: 100%;
  }
  .district-search-input {
    width: 100%;
  }
  .hero-headline {
    font-size: 28px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* Author box & author page */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 36px 0;
}
.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.author-avatar-lg {
  width: 160px;
  height: 160px;
}
.author-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sky-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.author-name {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0;
}
.author-name a { color: var(--text-primary); }
.author-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.author-bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.author-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.author-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--sky-100);
  color: var(--sky-800);
}
.author-more {
  font-size: 13px;
  font-weight: 700;
}
.author-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.author-note {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border-left: 3px solid var(--sky-500);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.static-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.static-page th,
.static-page td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  text-align: left;
}
.static-page th { background: var(--bg-surface-alt); }

/* Contact form */
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  max-width: 560px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-hindi);
  font-size: 14px;
}
.contact-notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 600;
}
.contact-ok { background: var(--emerald-100); color: #065f46; }
.contact-err { background: var(--rose-100); color: #9f1239; }

@media (max-width: 600px) {
  .author-box,
  .author-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
