/* ========================================
   TNO D&D Website – Custom Styles
   Dark Fantasy Theme | Bootstrap 5
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-bg:         #0D0B14;
  --color-surface:    #1a0f2e;
  --color-surface-2:  #140a22;
  --color-accent:     #C2A15A;
  --color-accent-2:   #8F4C04;
  --color-indigo:     #30045D;
  --color-text:       #E7E1D6;
  --color-text-muted: #9e8b6a;
  --color-border:     #2d1958;
  --font-heading:     'Cinzel Decorative', serif;
  --font-subheading:  'Cinzel', serif;
  --font-body:        'Crimson Text', serif;
  --transition:       all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: #f0c060; text-decoration: none; }

p { color: var(--color-text); }

img { max-width: 100%; height: auto; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 4px; }

/* ---------- Navbar ---------- */
.navbar {
  background-color: rgba(13, 11, 20, 0.97) !important;
  border-bottom: 2px solid var(--color-border);
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent) !important;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(194,161,90,0.5);
}

.navbar-brand img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(194,161,90,0.3));
  transition: var(--transition);
}

.navbar-nav .nav-link {
  font-family: var(--font-subheading);
  font-size: 0.9rem;
  color: var(--color-text-muted) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent) !important;
  text-shadow: 0 0 8px rgba(194,161,90,0.4);
}

.navbar-toggler {
  border-color: var(--color-border);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28194, 161, 90, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* PLACEHOLDER: replace background-image with actual hero art */
  background: linear-gradient(160deg, #0D0B14 0%, #1a0f2e 40%, #20093a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(48,4,93,0.45) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.30;
  filter: blur(6px);
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(194,161,90,0.6), 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 0.25em;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-subheading);
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-text);
  font-style: italic;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* ---------- Divider ---------- */
.divider {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 1rem auto 2rem;
  border: none;
}

.divider-icon {
  text-align: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin: 0.5rem 0 1.5rem;
  opacity: 0.8;
}

/* ---------- Section ---------- */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-subheading);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.bg-surface  { background-color: var(--color-surface); }
.bg-surface-2 { background-color: var(--color-surface-2); }

/* ---------- Cards ---------- */
.card-dark {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.card-dark:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(194,161,90,0.2);
  transform: translateY(-4px);
}

.card-dark .card-img-placeholder {
  /* PLACEHOLDER: replace with actual image tag */
  background: linear-gradient(135deg, #1a0f2e 0%, #140a22 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 3rem;
}

.card-dark .card-body {
  padding: 1.5rem;
}

.card-dark .card-title {
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.card-dark .card-text {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn-fantasy {
  font-family: var(--font-subheading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.8rem;
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-fantasy:hover {
  background: var(--color-accent);
  color: #0D0B14;
  box-shadow: 0 0 18px rgba(194,161,90,0.45);
}

.btn-fantasy-solid {
  background: var(--color-accent);
  color: #0D0B14;
  font-weight: 600;
}

.btn-fantasy-solid:hover {
  background: #D4B872;
  color: #0D0B14;
}

.btn-fantasy-danger {
  color: #e05555;
  border-color: #e05555;
}

.btn-fantasy-danger:hover {
  background: #8b0000;
  color: var(--color-text);
  border-color: #8b0000;
}

/* ---------- Badge / Tag ---------- */
.badge-fantasy {
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-accent-2);
  color: var(--color-text);
  padding: 0.3em 0.75em;
  border-radius: 2px;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: 7rem 0 4rem;
  text-align: center;
  /* PLACEHOLDER: replace with page-specific art */
  background: linear-gradient(180deg, #1a0f2e 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(194,161,90,0.4);
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  font-family: var(--font-subheading);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1rem;
}

.cast-photo {
  width: 180px;
  height: 180px;
  border-radius: 10%;   /* circular portrait */
  object-fit: cover;
}

/* ---------- Cast Page ---------- */
.cast-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--color-surface);
}

.cast-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 25px rgba(194,161,90,0.25);
}

.cast-portrait {
  /* PLACEHOLDER: replace with actual cast portrait */
  background: linear-gradient(135deg, #30045D, #0D0B14);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--color-text-muted);
}

.cast-info { padding: 1.5rem; }

.cast-name {
  font-family: var(--font-subheading);
  font-size: 1.3rem;
  color: var(--color-accent);
}

.cast-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cast-character {
  font-size: 1rem;
  color: var(--color-text);
  font-style: italic;
}

/* ---------- World / Lore Page ---------- */
.lore-card {
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 2rem;
  background: var(--color-surface);
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
  transition: var(--transition);
}

.lore-card:hover {
  background: var(--color-surface-2);
  box-shadow: -3px 0 15px rgba(194,161,90,0.2);
}

.lore-card-title {
  font-family: var(--font-subheading);
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* ---------- Timeline (Campaign) ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '⚔';
  position: absolute;
  left: -2.6rem;
  top: 0.1rem;
  color: var(--color-accent);
  font-size: 1rem;
  background: var(--color-bg);
  padding: 0 4px;
}

.timeline-label {
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.bulletList{
	text-align: center; 
}

ul {
  /* Treat the list as an inline-block to allow margin auto centering */
  display: inline-block; 
  /* Reset default left padding for better centering control */
  padding-left: 0; 
  /* Center the list block using auto margins */
  margin: 0 auto; 
  /* Re-align the text inside the list items to the left, relative to their bullets */
  text-align: left; 
  /* Ensure bullets stay outside the text block, maintaining a standard list look */
  list-style-position: outside; 
}

li {
  /* Ensure text within list items aligns correctly below the first line */
  /* This property is default, but explicitly setting it can ensure consistency */
  text-align: left; 
}

/* ---------- Merch Store ---------- */
.merch-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.merch-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(194,161,90,0.2);
  transform: translateY(-4px);
}

.merch-img-placeholder {
  /* PLACEHOLDER: replace with actual product image */
  background: linear-gradient(135deg, #1a0f2e 0%, #140a22 100%);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-text-muted);
}

.merch-body { padding: 1.25rem 1.5rem; }

.merch-title {
  font-family: var(--font-subheading);
  font-size: 1.1rem;
  color: var(--color-accent);
}

.merch-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Footer ---------- */
footer {
  background-color: #08060f;
  border-top: 2px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  color: var(--color-text-muted);
}

footer .footer-brand img {
  height: 28px;
  width: auto;
  vertical-align: middle;
}

footer .footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

footer .footer-links a {
  color: var(--color-text-muted);
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0.5rem;
  transition: var(--transition);
}

footer .footer-links a:hover {
  color: var(--color-accent);
}

footer .social-links a {
  color: var(--color-text-muted);
  font-size: 1.3rem;
  margin: 0 0.5rem;
  transition: var(--transition);
}

footer .social-links a:hover {
  color: var(--color-accent);
}

footer .footer-copy {
  font-size: 0.82rem;
  text-align: center;
  color: var(--color-text-muted);
  opacity: 0.6;
  margin-top: 2rem;
}

/* ---------- Utility ---------- */
.text-accent  { color: var(--color-accent) !important; }
.text-muted-fantasy { color: var(--color-text-muted) !important; }
.border-fantasy { border-color: var(--color-border) !important; }

.glow-text {
  text-shadow: 0 0 18px rgba(194,161,90,0.5);
}

.separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero-title { font-size: 2.8rem; }
  .cast-portrait { height: 260px; }
}
