/*
Theme Name: Valkyrie Roleplay Hub
Theme URI: https://valkyrie-roleplay-hub.com
Author: VRH
Author URI: https://valkyrie-roleplay-hub.com
Description: Custom WordPress theme for Valkyrie Roleplay Hub (VRH) — a roleplay hub for VRChat. Ported from the original static HTML/CSS site. Colors: #49255d (deep purple) and #e3c6b8 (soft blush).
Version: 1.0.0
Requires at least: 5.9
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: vrh
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============================================================
   Valkyrie Roleplay Hub (VRH) — Stylesheet
   Palette:  #49255d (deep purple)  /  #e3c6b8 (soft blush)
   ============================================================ */

:root {
  --purple:        #49255d;
  --purple-dark:   #331742;
  --purple-deep:   #241030;
  --purple-mid:    #6b3a86;
  --purple-soft:   #a57bbd;
  --blush:         #e3c6b8;
  --blush-light:   #f4e4dc;
  --blush-pale:    #fbf3ef;
  --ink:           #2a1b31;
  --muted:         #6f5f78;
  --white:         #ffffff;
  --gold:          #d9a441;
  --radius:        12px;
  --shadow:        0 6px 24px rgba(36, 16, 48, 0.18);
  --shadow-soft:   0 3px 10px rgba(36, 16, 48, 0.10);
  --font-body:     "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display:  "Georgia", "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--blush-pale);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--purple-mid); }
a:hover { color: var(--purple); }

/* ---------------- Utility ---------------- */

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.section { padding: 72px 0; }
.section-alt { background: var(--blush-light); }

.text-center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--purple-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { margin-bottom: 14px; }

.lead { font-size: 1.15rem; color: var(--muted); }

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blush);
  letter-spacing: 0.04em;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blush);
  color: var(--purple-dark);
}
.btn-primary:hover { background: #dbb39f; color: var(--purple-deep); }

.btn-ghost {
  background: transparent;
  color: var(--blush);
  border-color: var(--blush);
}
.btn-ghost:hover { background: rgba(227, 198, 184, 0.12); }

.btn-outline {
  background: transparent;
  color: var(--purple-mid);
  border-color: var(--purple-mid);
}
.btn-outline:hover { background: var(--blush-light); }

.btn-block { display: block; text-align: center; }

/* ---------------- Header / Nav ---------------- */

.site-header {
  background: var(--purple-dark);
  border-bottom: 3px solid var(--blush);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple));
  border: 2px solid var(--blush);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blush);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-name { font-family: var(--font-display); font-size: 1.25rem; }
.brand-sub { display: block; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--blush); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 30px;
  color: var(--blush-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: rgba(227, 198, 184, 0.15); color: var(--white); }
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  background: var(--blush);
  color: var(--purple-dark);
  font-weight: 600;
}

.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(107, 58, 134, 0.55), transparent 60%),
    radial-gradient(900px 400px at 0% 110%, rgba(36, 16, 48, 0.9), transparent 55%),
    linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 55%, var(--purple-deep) 100%);
  color: var(--blush-light);
  text-align: center;
  padding: 110px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -120px 0;
  height: 240px;
  background: radial-gradient(ellipse at 50% 100%, rgba(227, 198, 184, 0.22), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}

.hero .tagline { font-size: clamp(1.05rem, 2vw, 1.35rem); margin-bottom: 16px; }

.hero-text { max-width: 640px; margin: 0 auto 34px; color: rgba(244, 228, 220, 0.85); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Link cards (Discord / VRChat) ---------------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--blush);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.platform-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.platform-icon {
  font-size: 2.4rem;
  line-height: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blush-light);
  color: var(--purple-mid);
}

.platform-link h3 { margin: 0; }

.platform-icon svg { width: 40px; height: 40px; }

.icon-inline {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  margin-right: 6px;
}

/* ---------------- Cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card h3 { color: var(--purple-mid); }

.card-accent {
  border-left: 5px solid var(--purple-mid);
}

.card .card-link { font-weight: 600; }

/* ---------------- Panels / info blocks ---------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}

.panel-alt {
  background: linear-gradient(150deg, var(--purple), var(--purple-dark));
  color: var(--blush-light);
  border: none;
}

.panel-alt h3 { color: var(--white); }
.panel-alt .kicker { color: var(--blush); }

/* ---------------- FAQ (accordion) ---------------- */

.faq-item {
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--purple-mid);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------------- Forms ---------------- */

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--blush);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(107, 58, 134, 0.15);
}

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---------------- Lists ---------------- */

.rule-list { list-style: none; }
.rule-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px dashed var(--blush);
}
.rule-list li:last-child { border-bottom: none; }

.rule-list li::before {
  content: "✦";
  position: absolute;
  left: 6px;
  top: 10px;
  color: var(--purple-mid);
}

.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 12px 0 12px 58px;
  position: relative;
  border-bottom: 1px dashed var(--blush);
}
.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--blush);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* ---------------- Tables ---------------- */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--blush); }
th { background: var(--purple); color: var(--blush-light); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--blush-pale); }

/* ---------------- Badges ---------------- */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-purple { background: var(--purple-soft); color: var(--white); }
.badge-blush  { background: var(--blush); color: var(--purple-dark); }
.badge-gold   { background: var(--gold); color: var(--purple-deep); }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--purple-deep);
  color: rgba(244, 228, 220, 0.75);
  padding: 46px 0 30px;
  margin-top: 60px;
}

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

.site-footer h4 {
  color: var(--blush);
  font-family: var(--font-display);
  margin-bottom: 12px;
}

.site-footer a { color: var(--blush-light); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer .footer-list { list-style: none; }
.site-footer .footer-list li { margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(227, 198, 184, 0.25);
  padding-top: 18px;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .nav { flex-wrap: wrap; }

  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--blush);
    color: var(--blush);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
  }

  .nav-links.show { display: flex; }
  .nav-links a { text-align: center; }
}