/*
Theme Name: Gold Price Today
Theme URI: https://goldpricetoday.in
Author: Gold Price Today
Author URI: https://goldpricetoday.in
Description: A modern, fast, and SEO-optimized WordPress theme designed specifically for gold price / bullion rate websites in India. Compatible with Gold Price Today plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0+
Text Domain: gpt-theme
Tags: gold, finance, news, blog, custom-header, custom-logo, responsive-layout, rtl-language-support
*/

/* ============================================
   GOLD PRICE TODAY — THEME
   ============================================ */

:root {
  --gold:       #D4AF37;
  --gold-dark:  #B8860B;
  --gold-light: #F5E88A;
  --black:      #111111;
  --white:      #FFFFFF;
  --grey:       #F8F9FA;
  --grey-2:     #E9ECEF;
  --text:       #212529;
  --muted:      #6C757D;
  --shadow:     0 2px 16px rgba(0,0,0,0.08);
  --radius:     10px;
}

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

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

body {
  margin: 0;
  font-family: 'Hind', 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
  background: var(--grey);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }
a   { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- HEADER ---- */
#masthead {
  background: linear-gradient(135deg, #1a0a00 0%, #2d1a00 50%, #1a0a00 100%);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

.site-branding { display: flex; align-items: center; gap: 12px; }

.site-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.site-title a { color: var(--white); text-decoration: none; }
.site-title a span { color: var(--gold); }

.site-description {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  letter-spacing: 0.5px;
}

/* Navigation */
#primary-navigation ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-navigation a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
#primary-navigation a:hover,
#primary-navigation .current-menu-item > a {
  background: var(--gold);
  color: var(--black);
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: white;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 20px;
}

/* ---- TICKER ---- */
.header-ticker-wrap { background: #0d0d0d; }

/* ---- HERO (Homepage) ---- */
.gpt-hero {
  background: linear-gradient(135deg, #1a0a00, #3d2200, #1a0a00);
  padding: 60px 20px 50px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.gpt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.gpt-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.gpt-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.15;
}
.gpt-hero h1 span { color: var(--gold); }

.gpt-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 28px;
}

.gpt-hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.gpt-hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.gpt-hero-stat-value { display: block; font-size: 22px; font-weight: 800; color: var(--gold); }
.gpt-hero-stat-label { display: block; font-size: 12px; color: rgba(255,255,255,0.7); }

/* ---- MAIN LAYOUT ---- */
#primary { max-width: 1200px; margin: 32px auto; padding: 0 20px; }

.content-area { flex: 1; min-width: 0; }
.with-sidebar  { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

/* ---- WIDGETS / SIDEBAR ---- */
.widget-area { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.widget-title {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.widget-body { padding: 14px 16px; }

/* ---- POSTS / CONTENT ---- */
.entry-header { margin-bottom: 20px; }
.entry-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 8px; }
.entry-meta { font-size: 13px; color: var(--muted); }

.entry-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}
.entry-content h2 { color: var(--gold-dark); border-bottom: 2px solid var(--gold-light); padding-bottom: 8px; }
.entry-content h3 { color: var(--text); }

/* ---- FOOTER ---- */
#colophon {
  background: linear-gradient(135deg, #0d0800, #1a1000);
  color: rgba(255,255,255,0.8);
  margin-top: 48px;
  border-top: 3px solid var(--gold);
}

.footer-widgets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-widget-title {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding-bottom: 8px;
}

.footer-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-city-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  padding: 2px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-city-links a:hover { color: var(--gold); }

.footer-bottom {
  background: rgba(0,0,0,0.4);
  text-align: center;
  padding: 14px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold); }

/* ---- SEARCH BAR ---- */
.gpt-search {
  display: flex;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 8px;
  overflow: hidden;
}
.gpt-search input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
}
.gpt-search input::placeholder { color: rgba(255,255,255,0.5); }
.gpt-search button {
  background: var(--gold);
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 16px;
  color: #000;
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .widget-area  { display: none; }
  .menu-toggle  { display: block; }
  #primary-navigation { display: none; }
  #primary-navigation.nav-open { display: block; }
  #primary-navigation ul { flex-direction: column; padding: 8px 0; }
  .gpt-hero { padding: 36px 16px; }
  .entry-content { padding: 18px 16px; }
}

/* ---- PRINT ---- */
@media print {
  #masthead, #colophon, .gpt-ticker-wrap, .gpt-ad { display: none !important; }
}
