/*
 * RUSTWOOD HUB — Howard Theme
 * Design: "Rustwood Sigil" — Dark Fantasy Codex / Mythic Emblem Page
 * Palette: Abyss black (#080b12), Shadow steel (#141a28), Ancient gold (#d4a843), Arcane blue (#4fc3f7)
 * Typography: System fonts with Cinzel/Raleway fallbacks
 */

:root {
  --abyss: #080b12;
  --deep-slate: #0f1420;
  --shadow-steel: #141a28;
  --ancient-gold: #d4a843;
  --gold-light: #f0c96a;
  --gold-dim: #8a6a1e;
  --arcane-blue: #4fc3f7;
  --arcane-dim: #1a5f7a;
  --vellum: #f0ead8;
  --slate-mist: #8a9ab5;
  
  --bg-primary: var(--abyss);
  --bg-secondary: var(--shadow-steel);
  --bg-card: var(--deep-slate);
  --text-primary: var(--vellum);
  --text-secondary: var(--slate-mist);
  --accent-gold: var(--ancient-gold);
  --accent-blue: var(--arcane-blue);
  --border-gold: rgba(195, 154, 87, 0.15);
  --border-blue: rgba(111, 199, 193, 0.09);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

.hc-related {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hc-related-head {
  margin-bottom: 1rem;
}
.hc-related-kicker {
  display: inline-block;
  margin-bottom: .45rem;
  color: var(--accent-blue);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.hc-related-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.4rem;
  color: var(--text-primary);
}
.hc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.hc-related-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  text-decoration: none;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.hc-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111,199,193,0.22);
  box-shadow: 0 16px 36px rgba(0,0,0,0.24), 0 0 30px rgba(111,199,193,0.08);
}
.hc-related-meta {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hc-related-card-title {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-primary);
}
.hc-related-copy {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.6;
}
.hc-related-link {
  margin-top: auto;
  color: var(--accent-blue);
  font-weight: 700;
}
@media (max-width: 900px) {
  .hc-related-grid { grid-template-columns: 1fr; }
}

/* Navigation */
.howard-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(8, 11, 18, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-gold), var(--gold-dim));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.25);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  line-height: 1;
}

.nav-logo-subtitle {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Desktop Navigation */
.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-gold);
}

/* Mobile Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-gold);
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  display: block;
  border-top: 1px solid var(--border-gold);
}

.mobile-menu-content {
  padding: 1rem;
  background: rgba(8, 11, 18, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-gold);
  background: rgba(212, 168, 67, 0.06);
  border-left-color: var(--accent-gold);
}

/* Main Content */
.main-content {
  padding-top: 64px;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(79, 195, 247, 0.05) 0%, transparent 40%),
    var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.15);
}

.hero-title-accent {
  color: var(--accent-gold);
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--abyss);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 30px rgba(212, 168, 67, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(212, 168, 67, 0.1);
  border-color: var(--accent-gold);
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(212, 168, 67, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.125rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Status Indicators */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-online {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-busy {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* Footer */
.footer {
  background: var(--deep-slate);
  border-top: 1px solid var(--border-gold);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-heart {
  color: var(--accent-gold);
}

/* Typography */
h1, h2, h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-alt {
  background: var(--deep-slate);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Glass effect */
.glass {
  background: rgba(20, 26, 40, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
}

/* Glow effects */
.glow-gold {
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.2);
}

.glow-blue {
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.15);
}

/* Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-blue { color: var(--accent-blue); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Audio player styling */
.audio-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.audio-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.875rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-player {
  width: 100%;
  height: 40px;
  border-radius: 6px;
}

/* Blog post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.post-item:hover {
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateX(4px);
}

.post-date {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.post-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--shadow-steel);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Selection */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: var(--text-primary);
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: 6rem 1rem 3rem;
    min-height: auto;
  }
  
  .hero-logo-container {
    padding: 0 0.5rem;
  }
  
  .hero-logo {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .nav-logo-title {
    font-size: 0.75rem;
  }
  
  .nav-logo-subtitle {
    display: none;
  }
}
