/* ============================================================
   CarlsFeet.com — Shared Styles
   Maintained by Pater Coal, High Cleric Supreme
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fire-bright:   #ff6b00;
  --fire-mid:      #cc4400;
  --fire-deep:     #8b1a00;
  --gold-bright:   #ffd700;
  --gold-mid:      #c8960c;
  --gold-dim:      #7a5c00;
  --charred:       #0e0906;
  --charred-mid:   #1c1208;
  --charred-light: #2e1e0f;
  --ember-glow:    #ff4500;
  --parchment:     #f0e0c0;
  --parchment-dim: #c8b090;
  --text-main:     #e8d5b0;
  --text-dim:      #a08060;
  --red-deep:      #6b0000;
  --notification-bg: #0a0700;
  --notification-border: #c8960c;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--charred);
  color: var(--text-main);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Ember Canvas (shared across pages) ── */
#ember-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Page Wrapper ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0a0400 0%, rgba(10,4,0,0.95) 100%);
  border-bottom: 2px solid var(--gold-mid);
  box-shadow: 0 2px 20px rgba(255, 107, 0, 0.3);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--gold-bright);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  white-space: nowrap;
}

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

.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  border-bottom-color: var(--fire-bright);
}

/* ── Section Container ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── DCC System Notification Box ── */
.sys-notification {
  background: var(--notification-bg);
  border: 1px solid var(--notification-border);
  border-left: 4px solid var(--fire-bright);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-main);
  box-shadow: 0 0 16px rgba(200, 150, 12, 0.2), inset 0 0 40px rgba(0,0,0,0.4);
  position: relative;
}

.sys-notification::before {
  content: '⚙ SYSTEM';
  display: block;
  font-size: 0.65rem;
  color: var(--gold-mid);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.sys-notification.achievement {
  border-left-color: var(--gold-bright);
  background: #0d0900;
}

.sys-notification.achievement::before {
  content: '★ NEW ACHIEVEMENT';
  color: var(--gold-bright);
}

.sys-notification.warning {
  border-left-color: #cc0000;
  background: #0d0000;
}

.sys-notification.warning::before {
  content: '⚠ WARNING';
  color: #cc0000;
}

.sys-notification .notif-title {
  font-size: 1rem;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
}

.sys-notification .notif-body {
  color: var(--text-main);
  line-height: 1.5;
}

.sys-notification .notif-body em {
  color: var(--fire-bright);
  font-style: normal;
}

/* ── Divider ── */
.fire-divider {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--fire-mid);
  font-size: 1.2rem;
  letter-spacing: 1em;
  opacity: 0.6;
}

/* ── Section Headers ── */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; color: var(--fire-bright); margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }

a { color: var(--fire-bright); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold-bright);
  border: 2px solid var(--gold-mid);
  cursor: pointer;
  transition: all 0.25s;
  text-shadow: 0 0 8px rgba(255,215,0,0.3);
  box-shadow: 0 0 10px rgba(200,150,12,0.2);
}

.btn:hover {
  background: var(--gold-mid);
  color: var(--charred);
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
  text-shadow: none;
}

.btn:active { transform: scale(0.97); }

.btn-fire {
  border-color: var(--fire-bright);
  color: var(--fire-bright);
  text-shadow: 0 0 8px rgba(255,107,0,0.4);
  box-shadow: 0 0 10px rgba(255,107,0,0.2);
}

.btn-fire:hover {
  background: var(--fire-bright);
  color: var(--charred);
  box-shadow: 0 0 25px rgba(255,107,0,0.5);
}

/* ── Meter / Progress Bar ── */
.devotion-meter-wrap {
  background: #1a0a00;
  border: 1px solid var(--gold-dim);
  height: 24px;
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.devotion-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fire-deep), var(--fire-bright), var(--gold-bright));
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--fire-bright);
}

.devotion-meter-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-main);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 4px #000;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--charred-light);
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4rem;
}

.site-footer .footer-flame {
  color: var(--fire-bright);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Glowing text effects ── */
.glow-gold {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255,215,0,0.6), 0 0 30px rgba(255,215,0,0.2);
}

.glow-fire {
  color: var(--fire-bright);
  text-shadow: 0 0 10px rgba(255,107,0,0.6), 0 0 30px rgba(255,107,0,0.2);
}

/* ── Stat Block (DCC style) ── */
.stat-block {
  background: #0d0800;
  border: 1px solid var(--gold-dim);
  padding: 1rem 1.25rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
}

.stat-block .stat-name {
  color: var(--gold-bright);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.stat-block .stat-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.stat-block .stat-item span:first-child {
  color: var(--text-dim);
}

.stat-block .stat-item span:last-child {
  color: var(--fire-bright);
  font-weight: bold;
}

/* ── Parchment style (for testimony) ── */
.parchment {
  background: #1a1000;
  border: 1px solid #5a3a10;
  border-radius: 2px;
  padding: 2.5rem 3rem;
  position: relative;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 0 30px rgba(100,50,0,0.2);
}

.parchment::before,
.parchment::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8b5a00, #c8960c, #8b5a00, transparent);
}

.parchment::before { top: 8px; }
.parchment::after  { bottom: 8px; }

.parchment p {
  color: var(--parchment);
  font-size: 1.05rem;
  line-height: 1.85;
}

.parchment .verse-marker {
  display: block;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.2em;
  margin: 1.5rem 0 0.5rem;
}

/* ── Item Card (for shop) ── */
.item-card {
  background: #0d0800;
  border: 1px solid var(--gold-dim);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.item-card:hover {
  border-color: var(--gold-mid);
  box-shadow: 0 0 20px rgba(200,150,12,0.15);
}

.item-card .item-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}

.item-card .item-level {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.item-card .item-stats {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--fire-bright);
  margin-bottom: 0.75rem;
}

.item-card .item-lore {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-style: italic;
  border-top: 1px solid #2a1800;
  padding-top: 0.75rem;
}

.item-card .item-price {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--gold-mid);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.65rem 1.25rem;
  background: var(--gold-mid);
  color: var(--charred);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  text-decoration: none;
  border: 2px solid var(--fire-bright);
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  outline: none;
}

/* ── Focus visibility (keyboard / assistive tech) ── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.gallery-tab:focus-visible {
  outline: 2px solid var(--fire-bright);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
}

/* ── Responsive navigation ── */
@media (max-width: 900px) {
  .nav-inner {
    height: auto;
    min-height: 56px;
    padding: 0.5rem 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
    gap: 0;
    justify-content: flex-start;
  }
  .nav-links::-webkit-scrollbar {
    height: 4px;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 2px;
  }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .parchment { padding: 1.5rem 1.25rem; }
  .nav-links a { padding: 0.4rem 0.55rem; font-size: 0.62rem; }
  .nav-brand { font-size: 0.88rem; }
  .site-nav { padding: 0 1rem; }
}

/* ── Animations ── */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.85; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,107,0,0.3); }
  50%       { box-shadow: 0 0 25px rgba(255,107,0,0.6); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
  from { opacity: 0; transform: scaleY(0.8); }
  to   { opacity: 1; transform: scaleY(1); }
}

.animate-in {
  animation: fade-in-up 0.6s ease forwards;
}
