/* ════════════════════════════════════════════════════
   Prayer for the Nations — Main Stylesheet
   ════════════════════════════════════════════════════ */

:root {
  --accent:       #c9a84c;
  --accent-dark:  #8b6914;
  --accent-light: #e8d5a3;
  --dark:         #1e1e2e;
  --dark2:        #2c2c3e;
  --green-sidebar:#1a6b3c;
  --green-dark:   #145530;
  --text:         #1a1a2e;
  --text-muted:   #555;
  --border:       #e0d6c8;
  --bg:           #f9f7f4;
  --white:        #fff;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
}

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

body.pn-nation-page,
body.pn-archive-page {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ─── NAV ─────────────────────────────────────────── */
.pn-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20,20,35,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.pn-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pn-nav-logo { text-decoration: none; }
.pn-logo-img { height: 36px; width: auto; }
.pn-logo-text { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.pn-nav-links { display: flex; gap: 28px; }
.pn-nav-links a,
.pn-nav-links ul { display: flex; gap: 28px; list-style: none; }
.pn-nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s;
}
.pn-nav-links a:hover { color: var(--accent); }

/* ─── HERO ────────────────────────────────────────── */
.pn-hero {
  position: relative;
  height: 320px;
  margin-top: 58px;
  background: linear-gradient(160deg, #00a5ff, #00ffce);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.pn-hero-archive { height: 220px; }
.pn-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 100%);
}
.pn-hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}
.pn-hero-flag { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.pn-hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  margin-bottom: 8px;
}
.pn-hero-sub {
  font-size: 15px;
  color: var(--accent-light);
  letter-spacing: 1px;
}

/* ─── LAYOUT ──────────────────────────────────────── */
.pn-layout { max-width: 1140px; margin: 0 auto; padding: 32px 20px 60px; }
.pn-layout-inner {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 768px) {
  .pn-layout-inner { grid-template-columns: 1fr; }
}

/* ─── SIDEBAR ─────────────────────────────────────── */
.pn-sidebar { position: sticky; top: 80px; }
.pn-sidebar-box {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* Prayer box */
.pn-prayer-box { background: var(--green-sidebar); }
.pn-sb-title {
  background: var(--green-dark);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 16px;
}
.pn-prayer-list {
  list-style: disc;
  padding: 14px 20px 14px 36px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  line-height: 1.7;
}
.pn-prayer-list li { margin-bottom: 6px; }
.pn-pray-btn-wrap { padding: 4px 16px 16px; }
.pn-pray-btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a00;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background .2s, transform .15s;
}
.pn-pray-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.pn-pray-btn.prayed { background: #fff; }
.pn-pray-count { font-weight: 900; }

/* Info box */
.pn-info-box { background: var(--green-sidebar); padding: 0; }
.pn-info-row {
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pn-info-row:first-child { border-top: none; }
.pn-info-indent { padding-left: 24px; }
.pn-info-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 3px;
}
.pn-info-val {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}
.pn-religion-val { display: flex; flex-direction: column; gap: 2px; }
.pn-highlight { color: #ff9999 !important; font-weight: 700; font-size: 16px !important; }
.pn-city-name { font-size: 16px !important; font-weight: 700; color: var(--accent-light) !important; }

/* ─── MAIN CONTENT ────────────────────────────────── */
.pn-main {}

.pn-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.pn-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.pn-section p { color: #333; font-size: 14px; margin-bottom: 12px; line-height: 1.75; }
.pn-section p:last-child { margin-bottom: 0; }

.pn-we-pray { border-left: 4px solid var(--green-sidebar); }

/* Content blocks from WP editor */
.pn-content-blocks h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.pn-content-blocks h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.pn-content-blocks p  { font-size: 14px; color: #333; line-height: 1.75; margin-bottom: 14px; }
.pn-content-blocks blockquote {
  border-left: 4px solid var(--accent);
  padding: 10px 18px;
  background: #fdf8ee;
  font-style: italic;
  color: #555;
  margin: 16px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Resource list */
.pn-resource-list { list-style: disc; padding-right: 20px; }
.pn-resource-list li { font-size: 14px; margin-bottom: 8px; color: #333; }
.pn-resource-list a { color: var(--green-sidebar); text-decoration: underline; }
.pn-resource-list a:hover { color: var(--accent-dark); }

/* Bibliography */
.pn-bib-list { list-style: disc; padding-right: 20px; }
.pn-bib-list li { font-size: 13px; color: #555; margin-bottom: 6px; }
.pn-bib-list a { color: var(--green-sidebar); }

/* ─── ARCHIVE ─────────────────────────────────────── */
.pn-archive-wrap { max-width: 1140px; margin: 0 auto; padding: 32px 20px 60px; }

.pn-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pn-tab {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
}
.pn-tab:hover, .pn-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pn-nations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.pn-nation-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.pn-nation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.pn-card-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #1a2a4a;
}
.pn-card-body { padding: 14px 16px; }
.pn-card-flag { font-size: 28px; margin-bottom: 6px; }
.pn-card-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.pn-card-tag {
  display: inline-block;
  background: var(--green-sidebar);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pn-card-pop, .pn-card-lr { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pn-card-lr { color: #c0392b; }
.pn-card-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.pn-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; }
.pn-empty a { color: var(--green-sidebar); font-weight: 700; }

/* ─── FOOTER ──────────────────────────────────────── */
.pn-footer {
  background: var(--dark);
  border-top: 3px solid var(--accent);
  padding: 24px 20px;
}
.pn-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.pn-footer-col {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.pn-footer-col .dashicons { color: var(--accent); font-size: 18px; }
.pn-footer-copy { text-align: center; color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 6px; }
.pn-footer-copy p:first-child { color: var(--accent-light); font-style: italic; margin-bottom: 4px; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .pn-layout { padding: 20px 14px 40px; }
  .pn-layout-inner { gap: 18px; }
}
@media (max-width: 768px) {
  .pn-sidebar { position: static; }
  .pn-hero { height: 220px; }
  .pn-hero-flag { font-size: 36px; }
  .pn-hero-title { letter-spacing: 1px; }
  .pn-footer-inner { flex-direction: column; text-align: center; }
  .pn-nav-links { gap: 14px; }
}
@media (max-width: 480px) {
  .pn-nations-grid { grid-template-columns: 1fr 1fr; }
  .pn-section { padding: 18px 16px; }
}
