/* ============================================================
   VALHALLA OTAKU — Page du jour (Manga Edition)
   ============================================================ */

/* HEADER — Case d'en-tête */
.daily-header {
  background: var(--ash);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.daily-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(var(--dot-color) 0deg 2deg, transparent 2deg 10deg);
  pointer-events: none;
  opacity: 0.3;
}

.daily-rune {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--dust);
  margin-bottom: 0.75rem;
  position: relative;
}

.daily-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  position: relative;
}

.daily-date {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--parchment);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}

.daily-divider {
  width: 80px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink-line) 0 6px, transparent 6px 10px);
  margin: 0 auto;
  position: relative;
}

/* MAIN */
.daily-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* SECTIONS */
.daily-section-label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--dust);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.daily-section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--ink-line);
}

/* CARDS — Cases de Manga */
.daily-card {
  background: var(--ash);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-bento);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.daily-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1.3px);
  background-size: 6px 6px;
  opacity: 0.4;
  pointer-events: none;
}

.daily-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-bento-hover);
}

/* CITATION CARD */
.quote-card {
  text-align: center;
  background: var(--stone);
}

.quote-marks {
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--ink-line);
  opacity: 0.2;
  display: block;
  margin-bottom: 0.5rem;
  user-select: none;
  text-shadow: 2px 2px 0 var(--gold-dim);
}

.quote-marks.close-quote {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-align: right;
  transform: rotate(180deg);
  display: block;
}

.daily-quote-text {
  font-family: var(--font-caption);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--parchment);
  margin: 0;
  position: relative;
  z-index: 1;
}
html[data-theme="light"] .daily-quote-text { color: var(--ink-line); }

.quote-attribution {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.quote-sep { color: var(--gold-dim); margin: 0 0.4rem; }

.quote-context-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--dust);
  font-style: italic;
  margin: 0;
}

/* CHARACTER CARDS */
.character-card {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}

.character-avatar-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 0; /* Plus carré façon manga */
  border: 3px solid var(--ink-line);
  background: var(--stone);
  box-shadow: 4px 4px 0 var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: rotate(-2deg);
}

.character-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(120%);
}

.character-avatar-placeholder {
  font-size: 2.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--dust);
}

.character-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.character-anime {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--gold);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 0.5rem;
  border: 2px solid var(--ink-line);
  box-shadow: 2px 2px 0 var(--ink-line);
  font-weight: bold;
}

.character-name {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 0 var(--ink-line);
  line-height: 1.2;
}

.character-story {
  font-family: var(--font-caption);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--parchment);
  margin: 0;
  background: rgba(var(--ink-rgb), 0.5);
  padding: 0.75rem;
  border-left: 3px solid var(--fade);
}
html[data-theme="light"] .character-story { background: rgba(0,0,0,0.03); color: var(--dust); }

/* Hero card - accent doré */
.hero-card-daily { border-left: 6px solid var(--gold); }
.hero-card-daily .character-name { color: var(--gold); }

/* Villain card - accent rose/sombre */
.villain-card-daily { border-left: 6px solid var(--rose); background: var(--stone); }
.villain-card-daily .character-name { color: var(--rose); }

/* CTA */
.daily-cta {
  text-align: center;
  padding: 1rem 1.5rem 2rem;
}

.daily-enter-btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  background: var(--ink);
  border: 3px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--gold-dim);
  text-transform: uppercase;
}

.daily-enter-btn:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--gold-dim);
  text-decoration: none;
}

.daily-enter-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--gold-dim);
}

.daily-cta-hint {
  font-family: var(--font-caption);
  font-size: 0.9rem;
  color: var(--dust);
  font-style: italic;
  margin-top: 1.5rem;
}

#daily-refresh-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fade);
  margin-top: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .daily-main { padding: 2rem 1rem; gap: 2rem; }
  .daily-card { padding: 1.5rem 1rem; border-width: 2px; box-shadow: 4px 4px 0 var(--ink-line); }
  .character-card { flex-direction: column; align-items: center; text-align: center; }
  .character-avatar-wrapper { width: 100px; height: 100px; transform: rotate(0deg); }
  .quote-marks { font-size: 3rem; }
  .daily-enter-btn { padding: 0.8rem 1.5rem; }
}
