
/* ══════════════════════════════════════
   ART SYSTEM — decorative imagery
   Drop files into client/assets/art/ with the names below.
   Each element degrades gracefully if the file is absent.
   ══════════════════════════════════════ */

/* ── Login / character-creation page background ── */
body.auth-page {
  background-image:
    linear-gradient(to bottom, rgba(10,8,18,0.72) 0%, rgba(10,8,18,0.88) 100%),
    url('../assets/art/bg-login.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* ── Sidebar background texture ── */
#sidebar {
  background-image:
    linear-gradient(to bottom, rgba(14,12,24,0.97) 0%, rgba(14,12,24,0.93) 100%),
    url('../assets/art/bg-sidebar.jpg');
  background-size: cover;
  background-position: center;
}

/* ── Per-tab art banners ── */
.tab-art-banner {
  width: 100%;
  margin: 0 0 1.25rem 0;
  height: 300px;
  background-size: cover;
  background-position: center 30%;
  border-bottom: 1px solid var(--border-dim);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: default;
}

/* Hover dim overlay */
.tab-art-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 16, 0);
  transition: background 0.35s ease;
  pointer-events: none;
  z-index: 3;
}
.tab-art-banner:hover::after {
  background: rgba(8, 6, 16, 0.6);
}

/* Each banner: dark overlay + photo + gradient fallback — all in one background declaration */
.tab-art-banner.banner-general {
  background:
    linear-gradient(to bottom, rgba(10,8,18,0.15) 0%, rgba(10,8,18,0.75) 100%),
    url('../assets/art/banner-general.jpg') center 30% / cover no-repeat,
    linear-gradient(135deg, #1a1020 0%, #2a1a30 40%, #1a0e24 100%);
}
.tab-art-banner.banner-diary {
  background:
    linear-gradient(to bottom, rgba(10,8,18,0.15) 0%, rgba(10,8,18,0.75) 100%),
    url('../assets/art/banner-diary.jpg') center 30% / cover no-repeat,
    linear-gradient(135deg, #120e1e 0%, #1e1428 50%, #0e0a18 100%);
}
.tab-art-banner.banner-skills {
  background:
    linear-gradient(to bottom, rgba(10,8,18,0.15) 0%, rgba(10,8,18,0.75) 100%),
    url('../assets/art/banner-skills.jpg') center 30% / cover no-repeat,
    linear-gradient(135deg, #0f1520 0%, #162030 50%, #0a1018 100%);
}
.tab-art-banner.banner-dragon {
  background:
    linear-gradient(to bottom, rgba(10,8,18,0.05) 0%, rgba(10,8,18,0.55) 100%),
    url('../assets/art/banner-dragon.jpg') center 20% / cover no-repeat,
    linear-gradient(135deg, #1a0d0a 0%, #2d1208 50%, #3d1a05 100%);
}
.tab-art-banner.banner-relations {
  background:
    linear-gradient(to bottom, rgba(10,8,18,0.15) 0%, rgba(10,8,18,0.75) 100%),
    url('../assets/art/banner-relations.jpg') center 30% / cover no-repeat,
    linear-gradient(135deg, #18101a 0%, #261428 50%, #180e20 100%);
}

/* Banner title — slides up on hover */
.tab-art-banner-title {
  position: absolute;
  bottom: 0.85rem;
  left: 1.25rem;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 12px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.8);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.tab-art-banner:hover .tab-art-banner-title {
  transform: translateY(-0.5rem);
  opacity: 0.7;
}

/* Banner info tooltip — hidden until hover */
.tab-art-banner-info {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
  pointer-events: none;
}
.tab-art-banner:hover .tab-art-banner-info {
  opacity: 1;
  transform: translateY(0);
}
.tab-art-banner-info-heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-ember);
  margin-bottom: 0.5rem;
}
.tab-art-banner-info-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  max-width: 38rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

/* ── Targaryen sigil watermark ── */
#main-panel::before {
  content: '';
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 180px;
  height: 180px;
  background-image: url('../assets/art/sigil.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* ── Decorative section dividers ── */
.art-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-ember) 20%,
    var(--accent-gold) 50%,
    var(--accent-ember) 80%,
    transparent
  );
  margin: 1.25rem 0;
  opacity: 0.4;
}

/* ── Dragon tab specific — full-bleed art card ── */
.dragon-art-header {
  width: calc(100% + 2.5rem);
  margin: 0 -1.25rem 1rem;
  height: 200px;
  background-image: url('../assets/art/banner-dragon.jpg');
  background-size: cover;
  background-position: center 20%;
  position: relative;
  overflow: hidden;
}
.dragon-art-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,8,18,0.1) 0%,
    rgba(10,8,18,0.8) 80%,
    var(--bg-void) 100%);
}
