/* ===== Font ===== */
@font-face {
  font-family: 'Harry Potter';
  font-style: normal;
  font-weight: 400;
  src: url('https://fonts.cdnfonts.com/s/25438/HARRP___.woff') format('woff');
}

/* ===== Base ===== */
:root {
  --bg: #000000;
  --gold: #d3a625;
  --gold-glow: rgba(211, 166, 37, 0.85);
  --white-glow: rgba(255, 255, 255, 0.95);
}

* { box-sizing: border-box; }

body {background: var(--bg);
  color: var(--gold);
  text-transform: uppercase;}
  margin: 0;
  font-family: 'Harry Potter', 'Palatino Linotype', Georgia, serif;
  background: var(--bg);
  color: var(--gold);
  line-height: 1.6;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: 'Harry Potter', 'Palatino Linotype', Georgia, serif;
  margin-top: 0;
}

/* ===== Glow text (default state) ===== */
h1, h2, h3, p, li, a, td, th, .tagline, .logo {
  color: var(--gold);
  text-shadow: 0 0 6px var(--gold-glow), 0 0 14px var(--gold-glow);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

/* ===== Glow text (hover state) ===== */
h1:hover, h2:hover, h3:hover, p:hover, li:hover, a:hover, td:hover, th:hover, .tagline:hover, .logo:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--white-glow), 0 0 22px var(--white-glow), 0 0 40px var(--white-glow);
  transform: scale(1.08);
  display: inline-block;
}

/* ===== Glow text (clicked/active state, persists after click) ===== */
.glow-active {
  color: #ffffff !important;
  text-shadow: 0 0 10px var(--white-glow), 0 0 22px var(--white-glow), 0 0 40px var(--white-glow) !important;
  transform: scale(1.15);
  display: inline-block;
}

/* ===== Header ===== */
.site-header {
  background: #000000;
  color: var(--gold);
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
}

.logo {
  font-size: 2.6rem;
  letter-spacing: 1px;
  margin: 0;
}

.tagline {
  font-style: italic;
  margin: 0.3rem 0 1rem;
  font-size: 1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom: 2px solid var(--gold);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  max-width: 800px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.search-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.search-bar input {
  padding: 0.6rem 1rem;
  width: 280px;
  max-width: 80vw;
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-family: inherit;
  background: #0d0d0d;
  color: var(--gold);
}

.search-bar input::placeholder {
  color: rgba(211, 166, 37, 0.5);
}

.search-bar button {
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  text-shadow: none;
}

.search-bar button:hover {
  background: #f0c040;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ===== Sections ===== */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.4rem;
  display: block;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.card {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.2rem;
  box-shadow: 0 0 10px rgba(211, 166, 37, 0.15);
}

.card h3 {
  margin-bottom: 0.4rem;
  display: block;
}

.featured-article .card {
  border-left: 3px solid var(--gold);
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* House cards - all glow gold, border tint kept subtle */
.house-red    { border-left-color: #d3a625; }
.house-green  { border-left-color: #d3a625; }
.house-yellow { border-left-color: #d3a625; }
.house-blue   { border-left-color: #d3a625; }

/* ===== Spell table ===== */
.spell-table {
  width: 100%;
  border-collapse: collapse;
  background: #0a0a0a;
  box-shadow: 0 0 10px rgba(211, 166, 37, 0.15);
}

.spell-table th, .spell-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #2a2a2a;
  display: table-cell;
}

.spell-table th {
  background: #000000;
  border-bottom: 1px solid var(--gold);
}

.spell-table tr:hover {
  background: #111111;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: #000000;
  border-top: 1px solid #2a2a2a;
  font-size: 0.9rem;
}

.site-footer p { margin: 0.2rem 0; }