/* Asian-inspired theme overrides (greens & pinks) */
:root {
  --font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #fffdfb;
  --text: #222;
  --accent-green: #2f9e83;
  /* jade/teal */
  --accent-pink: #f48fb1;
  /* soft sakura */
  --hero-bg: linear-gradient(135deg, rgba(47, 158, 131, 0.06), rgba(244, 139, 177, 0.04));
  /* Seasonal theme colors */
  --season-summer: #FBBF24;
  /* bright amber/gold */
  --season-autumn: #C2410C;
  /* deep rust/orange */
  --season-winter: #2563EB;
  /* royal blue */
  --season-spring: #16A34A;
  /* fresh green */
}

html,
body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
}

/* Season badges */
.season-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem
}

.season-summer .season-badge,
.season-badge.season-summer {
  background: var(--season-summer)
}

.season-autumn .season-badge,
.season-badge.season-autumn {
  background: var(--season-autumn)
}

.season-winter .season-badge,
.season-badge.season-winter {
  background: var(--season-winter)
}

.season-spring .season-badge,
.season-badge.season-spring {
  background: var(--season-spring)
}

/* Add a subtle left accent for recap cards and hover effects */
.recap-card {
  border-left: 6px solid rgba(0, 0, 0, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  will-change: transform, box-shadow;
  background: #fff;
}

.recap-card:hover {
  transform: translateY(-6px);
  /* fallback neutral shadow if no season class present */
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.00));
}

/* Season-specific hover shadows (use a semi-opaque version of the season color) */
.recap-card.season-summer:hover {
  box-shadow: 0 18px 40px rgba(251, 191, 36, 0.14)
}

.recap-card.season-autumn:hover {
  box-shadow: 0 18px 40px rgba(194, 65, 12, 0.14)
}

.recap-card.season-winter:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14)
}

.recap-card.season-spring:hover {
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.14)
}

.recap-card.season-summer {
  border-left-color: var(--season-summer)
}

.recap-card.season-autumn {
  border-left-color: var(--season-autumn)
}

.recap-card.season-winter {
  border-left-color: var(--season-winter)
}

.recap-card.season-spring {
  border-left-color: var(--season-spring)
}

.players-hero,
.people-hero {
  background: var(--hero-bg);
  border-left: 6px solid var(--accent-green);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px
}

.players-hero h1,
.people-hero h1 {
  color: var(--accent-green);
  font-weight: 700
}

.players-hero p,
.people-hero p {
  color: #3b4750
}

.player-card,
.person-card {
  min-height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 0 rgba(47, 158, 131, 0.03)
}

.person-card {
  border-left: 6px solid rgba(0, 0, 0, 0.04);
}

.player-card .card-body,
.person-card .card-body {
  display: flex;
  flex-direction: column
}

.player-card .card-title a,
.person-card .card-title a {
  color: var(--accent-green);
  font-weight: 700
}

.player-card .card-text,
.person-card .card-text {
  color: #6b7280
}

.player-card:hover,
.person-card:hover {
  transform: translateY(-4px);
  transition: transform .15s ease
}

/* Faction hover colors */
.person-card.faction-northridge:hover {
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
  /* Deep Blue */
  border-color: rgba(30, 58, 138, 0.4);
}

.person-card.faction-northridge {
  border-left-color: rgba(30, 58, 138, 1);
}

.person-card.faction-southbank:hover {
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.25);
  /* Red/Crimson */
  border-color: rgba(185, 28, 28, 0.4);
}

.person-card.faction-southbank {
  border-left-color: rgba(185, 28, 28, 1);
}

.person-card.faction-downtown:hover {
  box-shadow: 0 10px 25px rgba(126, 34, 206, 0.25);
  /* Purple */
  border-color: rgba(126, 34, 206, 0.4);
}

.person-card.faction-downtown {
  border-left-color: rgba(126, 34, 206, 1);
}

.person-card.faction-generic:hover,
.person-card.faction-none:hover {
  box-shadow: 0 10px 25px rgba(107, 114, 128, 0.25);
  /* Gray */
  border-color: rgba(107, 114, 128, 0.4);
}

.person-card.faction-generic,
.person-card.faction-none {
  border-left-color: rgba(107, 114, 128, 1);
}

.player-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(244, 139, 177, 0.18)
}

.player-avatar-large {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(244, 139, 177, 0.18)
}

.player-meta-card {
  border: 1px solid rgba(47, 158, 131, 0.12);
  background: linear-gradient(180deg, rgba(47, 158, 131, 0.03), rgba(244, 139, 177, 0.01));
}

.player-meta-card .card-title {
  color: var(--accent-green);
  font-weight: 700
}

.player-meta-card .card-subtitle {
  color: #6b7280
}

.player-card .card:hover {
  transform: translateY(-4px);
  transition: transform .15s ease
}

.player-back a {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-pink)
}

/* Player content styles */
.player-content h2,
.player-content h3 {
  margin-top: 1.25rem
}

.player-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden
}

.player-content table th {
  background: linear-gradient(90deg, rgba(47, 158, 131, 0.12), rgba(244, 139, 177, 0.06));
  padding: 8px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  color: var(--accent-green);
  font-weight: 700
}

.player-content table td {
  padding: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: top
}

.player-content table tr:nth-child(even) td {
  background: rgba(47, 158, 131, 0.02)
}

/* Attributes/Defenses specific wrapper */
.stat-table-wrapper {
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  margin-bottom: 12px
}

.stat-table-wrapper table {
  margin: 0
}

.stat-table-wrapper th {
  background: linear-gradient(90deg, rgba(47, 158, 131, 0.16), rgba(244, 139, 177, 0.08));
  color: #123;
}

.stat-table-wrapper td:first-child {
  font-weight: 700;
  width: 35%;
  color: #333
}

.stat-table-wrapper td:nth-child(n+2) {
  text-align: center
}

.stat-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent-pink);
  color: #fff;
  border-radius: 12px;
  font-size: 0.8rem
}

/* Strike / offense styles */
.strike {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 8px
}

.strike-main {
  font-weight: 600
}

/* put traits on their own line, left-justified */
.strike-traits {
  display: block;
  margin-top: 8px;
  text-align: left
}

/* darker pink badges, left-aligned and wrapping */
.trait-badge {
  display: inline-block;
  background: #d6336c;
  color: #fff;
  padding: 3px 6px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1;
  margin-right: 6px;
  margin-bottom: 6px
}

.player-content ul,
.player-content ol {
  padding-left: 1rem
}

/* Small screens */
@media (max-width:520px) {
  .players-hero {
    padding: 14px
  }

  .player-avatar {
    width: 48px;
    height: 48px
  }

  .player-avatar-large {
    width: 80px;
    height: 80px
  }

  .stat-table-wrapper td {
    font-size: 0.9rem
  }
}

/* Quest styles */
.quest-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
  border-radius: 10px
}

.quest-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem
}

.quest-badge.side-quest {
  background: var(--accent-green)
}

.quest-badge.main-quest {
  background: #8b5cf6
}

.quest-badge.pc-related-quest {
  background: #fb7185
}

/* Quest hero (top summary) */
.quest-hero {
  background: var(--hero-bg);
  border-left: 6px solid var(--accent-green);
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 16px
}

.quest-hero h1 {
  margin: 0;
  color: var(--accent-green);
  font-weight: 800;
  font-size: 1.6rem
}

.quest-hero .text-muted {
  color: #3b4750
}

.quest-meta .badge {
  font-weight: 700
}

/* Task list / objectives / rewards */
.task-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem
}

.task-list .task-list {
  margin-top: 8px;
  padding-left: 1rem
}

.task-list-item {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff
}

.task-list-item::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  background: #fff
}

.task-list-item .task-list-item-checkbox {
  display: none
}

/* Hide default list markers for any list item that contains a checkbox */
/* Uses :has to detect checkbox children (modern browsers) */
li:has(> input[type="checkbox"]),
li:has(> .task-list-item-checkbox) {
  list-style: none;
  padding-left: 0;
}

li:has(> input[type="checkbox"])::marker {
  content: none;
}

ul:has(li > input[type="checkbox"]) {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

/* Visual state when checked (uses :has for checked input) */
.task-list-item:has(.task-list-item-checkbox:checked) {
  background: linear-gradient(90deg, rgba(47, 158, 131, 0.06), rgba(244, 139, 177, 0.03));
  color: #374151;
  text-decoration: none;
  opacity: 0.6;
}

.task-list-item:has(.task-list-item-checkbox:checked)::before {
  content: "✔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: var(--accent-green);
  border: none
}

/* Failed Task [-] */
.task-list-item.task-failed {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
  color: #991b1b;
  text-decoration: line-through;
  opacity: 0.8;
}

.task-list-item.task-failed::before {
  content: "✖";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: #ef4444;
  /* Red */
  border: none;
}

/* In Progress Task [/] */
.task-list-item.task-in-progress {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02));
  color: #1e3a8a;
  opacity: 1;
  /* Keep fully visible */
}

.task-list-item.task-in-progress::before {
  content: "◒";
  /* Alternative: ◑ or ◐ or 🌗 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: #3b82f6;
  /* Blue */
  border: none;
}

/* Small details */


.quest-body h1,
.quest-body h2 {
  margin-top: 1.25rem
}

.quest-body hr {
  border-top: 1px solid rgba(0, 0, 0, 0.04)
}

.player-back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-pink);
  font-weight: 700
}

/* Responsive */
@media (max-width:520px) {
  .quest-hero {
    padding: 14px
  }

  .quest-hero h1 {
    font-size: 1.3rem
  }

  .task-list-item {
    padding: 8px
  }
}

/* Home Page Styles */
.home-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/home_banner.png');
  background-size: cover;
  background-position: center;
  min-height: 500px;
  padding: 4rem 1rem;
  border-bottom: 1px solid rgba(47, 158, 131, 0.1);
  color: #fff;
}

.home-hero h1 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.home-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.nav-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.nav-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(47, 158, 131, 0.2) !important;
}

.nav-card .nav-icon {
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.nav-card:hover .nav-icon {
  transform: scale(1.1);
}

.nav-card .card-title {
  color: var(--text);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 300px;
    padding: 3rem 1rem;
  }

  .home-hero h1 {
    font-size: 2.5rem;
  }
}

/* Season-specific hero styles */
.quest-hero.season-summer {
  border-left-color: var(--season-summer);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(251, 191, 36, 0.02));
}

.quest-hero.season-summer h1 {
  color: var(--season-summer);
}

.quest-hero.season-autumn {
  border-left-color: var(--season-autumn);
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.06), rgba(194, 65, 12, 0.02));
}

.quest-hero.season-autumn h1 {
  color: var(--season-autumn);
}

.quest-hero.season-winter {
  border-left-color: var(--season-winter);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
}

.quest-hero.season-winter h1 {
  color: var(--season-winter);
}

.quest-hero.season-spring {
  border-left-color: var(--season-spring);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.02));
}


/* Season-specific progress bars */
.season-summer .progress-bar {
  background: linear-gradient(90deg, var(--season-summer), #fbbf24);
}

.season-autumn .progress-bar {
  background: linear-gradient(90deg, var(--season-autumn), #c2410c);
}

.season-winter .progress-bar {
  background: linear-gradient(90deg, var(--season-winter), #2563eb);
}

.season-spring .progress-bar {
  background: linear-gradient(90deg, var(--season-spring), #16a34a);
}

/* Add a subtle shine/gradient effect to the bar */
.progress-bar {
  background-size: 200% 100%;
  animation: bgPos 10s ease infinite;
}

@keyframes bgPos {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}