/* ================================================================
   WhiteCoder World News — static-pages.css
   Shared styles for About, Contact, Privacy, Terms pages
   ================================================================ */

/* ── Static Page Hero ───────────────────────────────────────────── */
.static-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.static-hero-inner { max-width: 680px; }
.static-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.static-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.static-hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Static Layout ──────────────────────────────────────────────── */
.static-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 48px 0 80px;
  align-items: start;
}

/* ── Prose ──────────────────────────────────────────────────────── */
.prose {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-primary);
}

.prose .lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-top: 8px;
}
.prose h2:first-of-type { margin-top: 16px; }

.prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--text-secondary);
}
.prose li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.prose strong { color: var(--text-primary); font-weight: 600; }

.prose blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-family: var(--font-body);
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
}

.inline-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}
.inline-link:hover { text-decoration-color: var(--accent); }

/* ── Feature Cards (About page) ─────────────────────────────────── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.feature-card-icon { font-size: 28px; margin-bottom: 10px; }
.feature-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Contact Cards ──────────────────────────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contact-card-icon { font-size: 28px; margin-bottom: 10px; }
.contact-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.contact-card a {
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
}
.contact-card a:hover { text-decoration: underline; }

/* ── Contact Form ───────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; line-height: 1.6; }
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.btn-form-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-form-submit:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.alert-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #059669;
}
.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #DC2626;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.static-sidebar { display: flex; flex-direction: column; gap: 24px; }

.static-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.static-sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.fact-list {
  list-style: none;
  padding: 8px 0;
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.fact-list li:last-child { border-bottom: none; }
.fact-list span { color: var(--text-muted); }
.fact-list strong { color: var(--text-primary); font-weight: 600; }

.sidebar-nav-list {
  list-style: none;
  padding: 8px 0;
}
.sidebar-nav-list li { border-bottom: 1px solid var(--border); }
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list a {
  display: block;
  padding: 11px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.sidebar-nav-list a:hover { color: var(--accent); background: var(--bg-elevated); padding-left: 22px; }
.sidebar-nav-list a.active { color: var(--accent); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 15px; }

/* ── Partials: Navbar + Footer auto-load ────────────────────────── */
/* (navbar.php and footer.php use the same styles from style.css) */

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .static-layout { grid-template-columns: 1fr; gap: 32px; }
  .static-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
  .static-sidebar-card { flex: 1; min-width: 200px; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .static-hero { padding: 32px 0 28px; }
  .static-sidebar { flex-direction: column; }
  .contact-form-wrap { padding: 20px 16px; }
}
