/* ============================================================
   lore-deity.css — Deity detail page
   Alignment-based colour accent + mystical hero layout
   ============================================================ */

/* ── Alignment colour tokens (set via --deity-color on .deity-hero) ── */

/* ── Deity hero: portrait + name side by side ── */
.deity-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem 0 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201,162,39,0.2);
  position: relative;
}
/* Soft colour wash behind the portrait */
.deity-hero::before {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--deity-color, var(--gold));
  opacity: 0.06;
  filter: blur(55px);
  pointer-events: none;
}

/* Circular portrait */
.deity-hero__portrait {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--deity-color, var(--gold));
  box-shadow: 0 0 30px rgba(0,0,0,0.5),
              0 0 0 6px rgba(var(--deity-color-rgb, 201,162,39), 0.12);
  position: relative;
  z-index: 1;
  background: rgba(13,13,26,0.8);
}
.deity-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deity-hero__portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--deity-color, var(--gold));
  opacity: 0.5;
}

/* Text block */
.deity-hero__text {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-top: 0.25rem;
}
.deity-hero__name {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--deity-color, var(--gold));
  margin: 0 0 0.2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 24px rgba(0,0,0,0.8),
               0 0 40px var(--deity-color, transparent);
  line-height: 1.15;
}
.deity-hero__epithet {
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
  display: block;
}
.deity-hero__alignment {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--deity-color, var(--gold));
  padding: 0.25rem 0.9rem;
  border: 1px solid var(--deity-color, var(--gold));
  border-radius: 20px;
  background: rgba(0,0,0,0.3);
  opacity: 0.85;
}

/* ── Deity stat bonus display ── */
.deity-bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}
.deity-bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  padding: 0.3rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
}
.deity-bonus-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.deity-bonus-badge--pos {
  background: rgba(109,191,124,0.15);
  border-color: rgba(109,191,124,0.45);
  color: #6dbf7c;
}
.deity-bonus-badge--neg {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.4);
  color: #e05545;
}

/* ── Deity ability box ── */
.deity-ability-box {
  margin-top: 1rem;
  padding: 1.1rem 1.3rem 1.2rem;
  background: linear-gradient(135deg,
    rgba(0,0,0,0.1) 0%,
    var(--bg-card) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid var(--deity-color, var(--gold));
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.deity-ability-box::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--deity-color, var(--gold));
  opacity: 0.05;
  filter: blur(30px);
  pointer-events: none;
}
.deity-ability-box__title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--deity-color, var(--gold-light));
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.deity-ability-box__desc {
  font-family: 'Crimson Text', serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── "O náboženství" divider ── */
.deity-religion-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2.5rem 0 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.deity-religion-divider::before,
.deity-religion-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.4), transparent);
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .deity-hero { gap: 1.2rem; }
  .deity-hero__portrait { flex: 0 0 110px; width: 110px; height: 110px; }
  .deity-hero__name { font-size: 1.55rem; }
  .deity-hero__epithet { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .deity-hero { flex-direction: column; align-items: center; text-align: center; }
  .deity-hero__portrait { flex: 0 0 130px; width: 130px; height: 130px; }
  .deity-bonuses { justify-content: center; }
}
