/*
Theme Name: Bhadkha Multi Domain Frontend
Theme URI: https://bhadkha.com
Author: Bhadkha
Description: Shared-hosting WordPress frontend for Bhadkha and Nifty Trader domains with one admin, per-domain ads, SEO, scripts, blog listing, blog detail, and domain-aware menus.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: bhadkha-multidomain
*/

:root {
  --bg: #f6f8fb;
  --ink: #102033;
  --muted: #64748b;
  --line: #dbe4ef;
  --brand: #1f3b73;
  --accent: #12a66a;
  --panel: #ffffff;
  --soft: #eef5ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: grid; gap: 2px; }
.brand strong { font-size: 21px; font-weight: 900; letter-spacing: 0; color: var(--brand); }
.brand span { font-size: 13px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 800; font-size: 14px; }
.nav a { color: #253244; }
.nav a:hover { color: var(--accent); }

.ad-slot {
  border: 1px dashed #b9c7d8;
  background: #f8fbff;
  color: #76879a;
  text-align: center;
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.header-ad { width: min(1180px, calc(100% - 32px)); margin: 14px auto; }

.hero {
  background: linear-gradient(135deg, #09203a, var(--brand));
  color: #fff;
}
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 300px;
  display: grid;
  align-items: center;
  padding: 46px 0;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6ee7b7;
  font-weight: 900;
  font-size: 13px;
}
.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}
.hero p { max-width: 760px; margin: 0; font-size: 18px; color: #dbeafe; }

.main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 54px;
  flex: 1;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 4px 0 0; }
.section-head h2 { margin: 0; font-size: 30px; letter-spacing: 0; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 35, 65, .06);
}
.post-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: #eaf1f8; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body { padding: 18px; }
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.post-card h2 { margin: 10px 0 8px; font-size: 21px; line-height: 1.25; letter-spacing: 0; }
.post-card p { margin: 0 0 14px; color: #44546a; }
.read-more { font-weight: 900; color: var(--brand); }

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 44px);
}
.article h1 { margin: 0 0 10px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: 0; }
.article .excerpt { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.featured-image,
.wp-block-image {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #edf3f8;
}
.featured-image img,
.wp-block-image img { width: 100%; border-radius: 8px; }
.content h2 { margin: 34px 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.content h3 { margin: 26px 0 10px; font-size: 22px; letter-spacing: 0; }
.content p, .content li { font-size: 17px; color: #26384d; }
.content a { color: var(--brand); font-weight: 800; }

.sidebar { display: grid; gap: 18px; align-content: start; }
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.side-box h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0; }
.category-list { display: grid; gap: 8px; }
.category-list a {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #edf2f7;
  padding: 8px 0;
  color: #253244;
  font-weight: 800;
}

.site-footer {
  margin-top: auto;
  background: #071526;
  color: #dbeafe;
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  gap: 12px;
}
.footer-inner strong { color: #fff; font-size: 20px; }
.footer-inner p { margin: 0; color: #b7c7db; }

.stock-site {
  --brand: #102a43;
  --accent: #10b981;
  --soft: #ecfdf5;
}
.stock-site .hero {
  background:
    linear-gradient(135deg, rgba(7,21,38,.94), rgba(15,76,117,.92)),
    radial-gradient(circle at 80% 10%, rgba(16,185,129,.35), transparent 30%);
}

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .layout { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}
