/* ==========================================================================
   TOMB OF ANNIHILATION - THEME DESIGN SYSTEM (DARK JUNGLE)
   ========================================================================== */

:root {
  /* Color Palette: HSL-tuned for rich dark-mode swamp aesthetics */
  --bg-primary: hsl(150, 45%, 5%);       /* Extremely dark green-black */
  --bg-secondary: hsl(150, 30%, 8%);     /* Deep swamp forest green */
  --bg-tertiary: hsl(150, 25%, 12%);     /* Ivy green */
  --bg-card: rgba(12, 28, 20, 0.75);     /* Translucent card background */
  
  --text-primary: hsl(46, 35%, 85%);     /* Antique paper/parchment light cream */
  --text-secondary: hsl(46, 15%, 65%);   /* Aged gray-green */
  --text-dark: hsl(40, 25%, 15%);        /* Parchment dark ink text */
  
  --accent-green: hsl(125, 90%, 50%);    /* Neon/Necromantic green (Soulmonger) */
  --accent-green-dim: rgba(0, 255, 68, 0.2);
  --accent-gold: hsl(46, 50%, 60%);      /* Aged explorer brass/gold */
  --accent-gold-dim: rgba(212, 180, 97, 0.2);
  --accent-blood: hsl(5, 75%, 45%);      /* Dried blood crimson */
  
  --border-color: rgba(212, 197, 161, 0.15);
  --border-glow: rgba(0, 255, 68, 0.3);
  
  /* Font Stacks */
  --font-headers: 'Cinzel', Georgia, serif;
  --font-body: 'Lora', 'Inter', system-ui, -apple-system, sans-serif;
  --font-theme: 'MedievalSharp', cursive;
  
  /* Glassmorphism */
  --glass-bg: rgba(8, 22, 15, 0.75);
  --glass-blur: blur(12px);
  --glass-border: 1px solid rgba(212, 197, 161, 0.12);
  
  /* Box Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 15px var(--border-glow);
  
  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-speed: 0.3s;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

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

a:hover {
  color: var(--accent-green);
}

/* ==========================================================================
   AMBIENT BACKGROUND EFFECTS (JUNGLE MIST & SOULMONGER GLOW)
   ========================================================================== */

.jungle-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  /* Dark dense jungle vignette background */
  background: 
    radial-gradient(circle at 50% 50%, rgba(12, 38, 25, 0.25) 0%, var(--bg-primary) 85%),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  pointer-events: none;
}

/* Moving fog animation */
.mist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 255, 68, 0.015) 0%, transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  animation: pulseMist 12s ease-in-out infinite alternate;
}

.mist-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  animation: driftFog 60s linear infinite;
}

@keyframes driftFog {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}

@keyframes pulseMist {
  0% { opacity: 0.5; filter: hue-rotate(0deg); }
  100% { opacity: 0.9; filter: hue-rotate(30deg); }
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.8rem;
  font-family: var(--font-headers);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold) 30%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 10px rgba(0, 255, 68, 0.15);
}

.logo-subtitle {
  font-size: 0.75rem;
  font-family: var(--font-theme);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 0.15rem;
}

/* Main Navigation */
.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-green);
  text-shadow: 0 0 8px var(--accent-green-dim);
  border-bottom: 2px solid var(--accent-green);
}

/* Auth Widget */
.auth-widget {
  display: flex;
  align-items: center;
}

.logged-out-view {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mock-auth-selector {
  position: relative;
}

.mock-btn-toggle {
  background: rgba(212, 197, 161, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-speed);
}

.mock-btn-toggle:hover {
  background: rgba(212, 197, 161, 0.12);
  border-color: var(--accent-gold);
}

.mock-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gold-dim);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 150;
  backdrop-filter: var(--glass-blur);
}

.mock-dropdown.show {
  display: flex;
}

.mock-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-theme);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-player-opt {
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-speed);
}

.mock-player-opt:hover {
  background: rgba(0, 255, 68, 0.1);
  color: var(--accent-green);
}

.logged-in-view {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-theme);
  color: var(--accent-green);
  font-size: 0.9rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.char-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.player-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--accent-blood);
  color: var(--text-primary);
  font-family: var(--font-headers);
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.logout-btn:hover {
  background: var(--accent-blood);
  box-shadow: 0 0 10px rgba(181, 23, 23, 0.4);
}

/* ==========================================================================
   APP NOTIFICATIONS
   ========================================================================== */

.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-green);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: slideInUp 0.3s ease;
}

.notification-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.notification-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.notification-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   MAIN CONTENT & SECTIONS
   ========================================================================== */

.main-content {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: 70vh;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.section-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 180, 97, 0.4);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   CHRONICLE LAYOUT (SIDEBAR + DISPLAY)
   ========================================================================== */

.chronicle-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

.chronicle-sidebar {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-theme);
}

.chronicle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.chronicle-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.chronicle-item:hover {
  background: rgba(212, 197, 161, 0.05);
  border-color: rgba(212, 197, 161, 0.2);
}

.chronicle-item.active {
  background: rgba(0, 255, 68, 0.08);
  border-color: var(--accent-green);
  box-shadow: 0 0 8px rgba(0, 255, 68, 0.1);
}

.chronicle-item-title {
  font-size: 0.85rem;
  font-family: var(--font-headers);
  font-weight: 700;
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.chronicle-item-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.chronicle-display {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  min-height: 500px;
}

.chronicle-details-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.chronicle-details-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.chronicle-meta-row {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-family: var(--font-theme);
}

.location-link {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 197, 161, 0.4);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.location-link:hover {
  color: #fff;
  text-decoration-color: var(--accent-gold);
}

.dynamic-tag {
  color: var(--accent-gold);
  text-decoration: underline dotted;
  text-decoration-color: rgba(212, 197, 161, 0.4);
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dynamic-tag:hover {
  color: #fff;
  text-decoration-color: var(--accent-gold);
}

.chronicle-summary-banner {
  background: rgba(212, 197, 161, 0.04);
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Styled text inside the chronicles */
.chronicle-narrative {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.chronicle-narrative p {
  margin-bottom: 1.5rem;
}

.chronicle-narrative ul, .chronicle-narrative ol {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
}

.chronicle-narrative li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.chronicle-narrative li::marker {
  color: var(--accent-gold);
}

.chronicle-narrative h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3rem;
}

.chronicle-narrative blockquote {
  border: 1px solid rgba(212, 197, 161, 0.2);
  background: rgba(8, 22, 15, 0.8);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  margin: 1.5rem 0;
  position: relative;
  font-style: italic;
}

.chronicle-narrative blockquote cite {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--font-theme);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   HEROES GRID & CARDS
   ========================================================================== */

.heroes-grid, .npc-grid, .lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gold);
  transition: background var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-green-dim);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 255, 68, 0.1);
}

.card:hover::before {
  background: var(--accent-green);
}

.card-img-container {
  height: 180px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img-container img {
  transform: scale(1.08);
}

.card-placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-theme);
  color: var(--text-secondary);
  font-size: 3rem;
  letter-spacing: 0.1em;
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-family: var(--font-theme);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-dim);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-family: var(--font-theme);
  margin-bottom: 0.8rem;
  display: block;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-footer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   FILTERS
   ========================================================================== */

.lore-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-headers);
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold-dim);
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

/* ==========================================================================
   MODAL OVERLAY & CARD (DETAIL VIEWS)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
}

.modal-card {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold-dim);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideIn {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-speed);
  line-height: 1;
  z-index: 10;
}

.modal-close:hover {
  color: var(--accent-blood);
}

.modal-content-body {
  margin-top: 1rem;
}

.detail-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.detail-img-container {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-gold);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.detail-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-title {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.detail-subtitle {
  font-size: 1rem;
  color: var(--accent-gold);
  font-family: var(--font-theme);
  margin-bottom: 1rem;
}

.detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.detail-meta-item {
  color: var(--text-secondary);
}

.detail-meta-item strong {
  color: var(--text-primary);
}

.detail-description {
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
  margin: 2.5rem 0;
}

/* ==========================================================================
   EXPLORER NOTES SYSTEM
   ========================================================================== */

.notes-segment {
  margin-top: 1.5rem;
}

.notes-heading {
  font-size: 1.4rem;
  font-family: var(--font-theme);
  margin-bottom: 1.5rem;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Scrap parchment note style */
.note-item {
  background-color: hsl(40, 40%, 94%);    /* Light realistic parchment paper */
  color: var(--text-dark);
  padding: 1.25rem;
  border-radius: 4px;
  position: relative;
  box-shadow: 
    3px 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 0 10px rgba(0, 0, 0, 0.08);
  font-family: var(--font-body);
  border-left: 4px solid var(--accent-blood);
  transform: rotate(-0.5deg);
  transition: transform 0.2s;
}

.note-item:nth-child(even) {
  transform: rotate(0.5deg);
  border-left-color: var(--bg-primary);
}

.note-item:hover {
  transform: rotate(0deg) translateY(-2px);
}

.note-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-theme);
}

.note-author {
  font-weight: 700;
  color: hsl(5, 75%, 25%);
}

.note-time {
  color: #777;
}

.note-text {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
}

/* Note Lockout message for logged-out players */
.note-lockout-msg {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.note-lockout-msg .lock-icon {
  margin-right: 0.4rem;
}

/* Note submission form */
.add-note-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.note-author-indicator {
  font-size: 0.85rem;
  font-family: var(--font-theme);
  color: var(--accent-gold);
}

.textarea-wrapper {
  margin: 0.75rem 0;
}

.add-note-form textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  padding: 0.75rem;
  resize: vertical;
  transition: all var(--transition-speed);
}

.add-note-form textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green-dim);
}

.submit-note-btn {
  background: var(--accent-gold-dim);
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.submit-note-btn:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-green-dim);
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */

.app-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-theme);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.hidden {
  display: none !important;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

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

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .chronicle-layout {
    grid-template-columns: 1fr;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .mock-dropdown {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 600px) {
  .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .modal-card {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
