/* L2FreeBot - Epic Raids section */

.epics-section {
  padding: 5rem 0;
  scroll-margin-top: calc(var(--top-offset) + 1rem);
  background: linear-gradient(180deg, transparent 0%, rgba(28, 12, 20, 0.45) 35%, transparent 100%);
}

.ep-banner {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(220, 80, 80, 0.28);
  background: linear-gradient(160deg, #1a1018 0%, #0c0e14 55%, #140f18 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.ep-banner-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 15% 0%, rgba(220, 80, 80, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 55% at 90% 100%, rgba(201, 162, 39, 0.12), transparent 55%);
  pointer-events: none;
}

.ep-banner-inner {
  position: relative;
  padding: 2.75rem 2rem;
  text-align: center;
}

.ep-banner-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.5rem 0 1rem;
  color: var(--text);
}

.ep-lead {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.ep-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ep-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 80, 80, 0.35);
  background: rgba(220, 80, 80, 0.08);
  color: #ffb0b0;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ep-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}

.ep-card:hover {
  border-color: rgba(220, 80, 80, 0.28);
  transform: translateY(-2px);
}

.ep-card--featured {
  grid-column: 1 / -1;
  border-color: rgba(201, 162, 39, 0.32);
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.06), var(--bg-panel));
}

.ep-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8a8a;
  margin-bottom: 0.75rem;
}

.ep-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--gold-light);
}

.ep-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ep-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.ep-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.ep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dc5050;
}

.ep-note {
  font-size: 0.8rem !important;
  font-style: italic;
  color: var(--text-muted) !important;
  opacity: 0.85;
  margin-bottom: 0 !important;
}

.ep-table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.ep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ep-table th,
.ep-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ep-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.2);
}

.ep-table td small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ep-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ep-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.ep-badge--pvp {
  background: rgba(220, 80, 80, 0.15);
  color: #ff9999;
}

.ep-badge--lv {
  background: rgba(255, 204, 51, 0.12);
  color: #ffcc33;
}

.ep-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.ep-timezone-notice {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 124, 255, 0.3);
  background: rgba(61, 124, 255, 0.08);
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
}

.ep-timezone-notice strong {
  color: var(--gold-light);
}

.ep-timeline {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.ep-timeline li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ep-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.ep-launch-notice {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(220, 80, 80, 0.06));
}

.ep-launch-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.ep-launch-notice h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--gold-light);
}

.ep-launch-notice p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ep-launch-notice p:last-child {
  margin-bottom: 0;
}

.ep-detail {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-panel-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ep-detail--highlight {
  border-color: rgba(220, 80, 80, 0.28);
  background: linear-gradient(135deg, rgba(220, 80, 80, 0.06), var(--bg-panel-2));
}

.ep-detail h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.65rem;
  color: var(--gold-light);
}

.ep-detail p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ep-detail p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .ep-grid,
  .ep-detail-grid {
    grid-template-columns: 1fr;
  }

  .ep-card--featured {
    grid-column: auto;
  }
}
