/* General Styles */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 40px;
  background: radial-gradient(circle at 50% 20%, #1f2638, #0a0c14 80%);
  color: #f5f5f5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 8, 20, 0.60) 35%,
      rgba(5, 8, 20, 0.40) 60%,
      rgba(5, 8, 20, 0.25)
    ),
    url("assets/background.png") center right / cover no-repeat;

  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

h1 {
  margin-bottom: 0.2rem;
}

h2 {
  margin-top: 2rem;
}

a {
  color: #4ea3ff;
}

/* ---------- LoL Map Filter Styles ---------- */
#map-filters {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #14141f;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.map-caption {
  color: #9ca3af;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.sr-map {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.sr-map img {
  width: 100%;
  border-radius: 1rem;
  opacity: 0.9;
}

/* ====== LoL Map Beams + Floating Letters ====== */
.map-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background: transparent;
  border: none;
  color: transparent;
}

.map-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 90px;
  border-radius: 999px;
  opacity: 0.7;
  filter: blur(4px);
  pointer-events: none;
}

.icon-gold::before {
  background: linear-gradient(
    to top,
    rgba(250, 204, 21, 0.9),
    rgba(250, 204, 21, 0.0)
  );
}
.icon-dragon::before {
  background: linear-gradient(
    to top,
    rgba(59, 130, 246, 0.9),
    rgba(59, 130, 246, 0.0)
  );
}
.icon-baron::before {
  background: linear-gradient(
    to top,
    rgba(147, 51, 234, 0.9),
    rgba(147, 51, 234, 0.0)
  );
}
.icon-tower::before {
  background: linear-gradient(
    to top,
    rgba(248, 250, 252, 0.9),
    rgba(248, 250, 252, 0.0)
  );
}
.icon-kills::before {
  background: linear-gradient(
    to top,
    rgba(239, 68, 68, 0.9),
    rgba(239, 68, 68, 0.0)
  );
}
.icon-vision::before {
  background: linear-gradient(
    to top,
    rgba(52, 211, 153, 0.9),
    rgba(52, 211, 153, 0.0)
  );
}

.map-icon::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(30px);
  font-weight: 700;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
}

.icon-gold::after {
  content: "G";
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(250, 204, 21, 0.95),
    0 0 16px rgba(250, 204, 21, 0.8);
}
.icon-dragon::after {
  content: "D";
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(96, 165, 250, 0.95),
    0 0 16px rgba(96, 165, 250, 0.8);
}
.icon-baron::after {
  content: "B";
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(196, 181, 253, 0.95),
    0 0 16px rgba(196, 181, 253, 0.8);
}
.icon-tower::after {
  content: "T";
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(248, 250, 252, 0.95),
    0 0 16px rgba(248, 250, 252, 0.8);
}
.icon-kills::after {
  content: "K";
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(239, 68, 68, 0.95),
    0 0 16px rgba(239, 68, 68, 0.8);
}
.icon-vision::after {
  content: "V";
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(52, 211, 153, 0.95),
    0 0 16px rgba(52, 211, 153, 0.8);
}

.map-icon:hover::after,
.map-icon.active::after {
  animation: floatLetter 0.6s ease-out forwards;
}

@keyframes floatLetter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
  }
}

/* Icon Positions */
.icon-gold   { left: 50%; top: 47%; }
.icon-dragon { left: 64%; top: 65%; }
.icon-baron  { left: 38%; top: 29%; }
.icon-tower  { left: 70%; top: 23%; }
.icon-kills  { left: 31%; top: 68%; }
.icon-vision { left: 50%; top: 70%; }

.map-legend {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  letter-spacing: 0.02em;
}
.map-legend span {
  font-weight: 700;
}

.lg-g { color: #facc15; }
.lg-d { color: #60a5fa; }
.lg-b { color: #a78bfa;}
.lg-t { color: #ffffff; }
.lg-k { color: #d33434; }
.lg-v { color: #40ff86; }

/* ====== Gold Over Time Chart ====== */
#chart-section {
  max-width: 1100px;
  margin: 2.5rem auto 1.5rem;
}

#chart-container {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: #14141f;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

#chart {
  margin-top: 0.5rem;
}

.tooltip {
  position: absolute;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  border: 1px solid #4ea3ff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.axis path,
.axis line {
  stroke: #9ca3af;
}

.axis text {
  fill: #e5e7eb;
  font-size: 11px;
}

.axis.axis-y line {
  stroke: #6b7280;
  stroke-dasharray: 4 4;
  opacity: 0.4;
}



/* ====== Win Probability Simulator ====== */

#win-sim {
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: #14141f;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

#win-sim h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.sim-intro {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .sim-grid {
    grid-template-columns: 1fr;
  }
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-control label,
.sim-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.sim-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #d1d5db;
  position: relative;
}

.sim-input-row input[type="range"] {
  flex: 1;
}

.slider-tooltip {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(156, 163, 175, 0.85);
  font-size: 0.7rem;
  white-space: nowrap;
  color: #e5e7eb;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.slider-tooltip-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}


.sim-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #d1d5db;
  margin-top: 0.3rem;
}

.sim-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-radio-group input {
  margin-right: 0.35rem;
}

.sim-output {
  padding: 1.25rem 1.5rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, #1f2937, #020617);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.sim-output-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.sim-prob-value {
  font-size: 2.6rem;
  font-weight: 700;
}

.sim-caption {
  font-size: 0.9rem;
  color: #9ca3af;
}

#sim-gold-value,
#sim-kills-value {
  display: inline-block;
  width: 5ch;
  text-align: right;
}

.content-center {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.55);
}

.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 1);
}

.lol-header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.lol-logo {
  width: 220px; 
  margin-bottom: 10px;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}

.story-strip {
  max-width: 1100px;
  margin: 24px auto 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  padding: 1.1rem 1.25rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.48);
  font-size: 0.9rem;
  line-height: 1.6;
}

.story-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.story-card p {
  margin: 0;
}

@media (max-width: 900px) {
  .story-strip {
    grid-template-columns: 1fr;
  }
}

.header-meta {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.55);
}

.header-meta .team-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.conclusion-section {
  max-width: 720px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
  color: #e5e7eb;

  /* Subtle shadow for better readability */
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.55);
}

.conclusion-section h2 {
  font-size: 1.9rem;
  margin-bottom: 1.4rem;
  font-weight: 700;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.45);
}


.conclusion-section p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.conclusion-list {
  max-width: 680px;
  margin: 1.8rem auto 2rem;
  text-align: left;
  list-style: disc;
  padding-left: 24px;
}

.conclusion-list li {
  margin-bottom: 1.4rem;
  line-height: 1.7;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.55);
}

.team-members {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.video-link {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5d3a6;
  background: rgba(19, 43, 79, 0.45);
  border: 1px solid #c2a669;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.25s ease;
}

.video-link:hover {
  background: rgba(194, 166, 105, 0.8);
  color: #0b0b12;
  box-shadow: 0 0 10px rgba(194, 166, 105, 0.8);
}

