/* ============================================
   Marvel Avengers Party Guestbook - Stylesheet
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --marvel-red:    #ED1D24;       /* Marvel Comics iconic red */
  --marvel-gold:   #F0C020;       /* Avengers gold / highlight */
  --marvel-blue:   #1C3F7A;       /* Captain America blue */
  --hero-gold:     #FFD700;       /* Bright hero gold for glows */
  --villain-purple:#7B2FBE;       /* Thanos / villain purple */
  --bg-dark:       #0d0d14;       /* Deep dark background */
  --bg-card:       rgba(15, 15, 28, 0.88);
  --text-light:    #e8e8f0;
  --text-muted:    #8080a8;
  --border-glow:   rgba(237, 29, 36, 0.35);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  background: var(--bg-dark) url('images/background.png') center center / cover no-repeat fixed;
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Dark overlay so text stays readable over background image ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  pointer-events: none;
}

.starfield {
  display: none;
}

/* ---------- Main Layout ---------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 4px;
}

.lang-switcher a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  font-family: 'Rajdhani', sans-serif;
}

.lang-switcher a:hover {
  color: var(--marvel-red);
}

.lang-switcher a.active {
  background: rgba(237, 29, 36, 0.15);
  color: var(--marvel-red);
  text-shadow: 0 0 10px rgba(237, 29, 36, 0.5);
}

/* ---------- Header / Logo ---------- */
.header {
  text-align: center;
  margin: 30px 0 10px;
}

.header-logo {
  width: clamp(150px, 30vw, 350px);
  height: auto;
  filter:
    drop-shadow(0 0 12px rgba(237, 29, 36, 0.6))
    drop-shadow(0 0 30px rgba(237, 29, 36, 0.25));
  transition: filter 0.3s ease;
}

.header-logo:hover {
  filter:
    drop-shadow(0 0 22px rgba(237, 29, 36, 0.85))
    drop-shadow(0 0 55px rgba(237, 29, 36, 0.4));
}

.header .subtitle {
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: #ffffff;
  margin-top: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
}

/* ---------- Event Info (under logo) ---------- */
.event-info {
  margin-top: 16px;
  text-align: center;
}

.event-date {
  font-family: 'Bebas Neue', 'Rajdhani', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--marvel-gold);
  text-shadow: 0 0 10px rgba(240, 192, 32, 0.5);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.event-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85em;
  color: var(--text-light);
}

.event-venue {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--marvel-red);
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 800;
}

.event-address {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: #ffffff;
  letter-spacing: 1px;
  font-weight: 800;
}

.event-map {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.event-map-links {
  display: flex;
  gap: 16px;
}

.map-link {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.map-link:hover {
  color: var(--marvel-gold);
  border-color: rgba(240, 192, 32, 0.4);
}

.map-link-street {
  color: var(--marvel-gold);
  border-color: rgba(240, 192, 32, 0.25);
}

.map-link-street:hover {
  color: var(--hero-gold);
  border-color: rgba(240, 192, 32, 0.55);
  box-shadow: 0 0 12px rgba(240, 192, 32, 0.25);
}

/* ---------- Main Content Area ---------- */
.content-area {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

/* ---------- Character Containers ---------- */
.character {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.character .char-img {
  width: auto;
  height: 280px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.character .char-img:hover {
  transform: scale(1.05);
}

.character .char-name {
  margin-top: 12px;
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Hero — Iron Man / gold glow */
.character.hero .char-name {
  color: var(--hero-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Villain — Thanos / purple glow */
.character.villain .char-name {
  color: var(--villain-purple);
  text-shadow: 0 0 10px rgba(123, 47, 190, 0.6);
}

/* ---------- Character Image Glow Animations ---------- */
@keyframes hero-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.55))
            drop-shadow(0 0 20px rgba(255,215,0,0.22));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255,215,0,0.9))
            drop-shadow(0 0 45px rgba(255,215,0,0.45));
  }
}

@keyframes villain-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(123,47,190,0.55))
            drop-shadow(0 0 20px rgba(123,47,190,0.22));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(123,47,190,0.9))
            drop-shadow(0 0 45px rgba(123,47,190,0.45));
  }
}

.character.hero .char-img {
  animation: hero-glow 2.5s ease-in-out infinite;
}

.character.villain .char-img {
  animation: villain-glow 2.5s ease-in-out infinite;
}

/* ---------- Center Panel ---------- */
.center-panel {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---------- Form Card ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.form-card h2 {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  color: var(--marvel-red);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 4px;
  text-shadow: 0 0 12px rgba(237, 29, 36, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(237, 29, 36, 0.25);
  border-radius: 8px;
  color: var(--text-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus {
  border-color: var(--marvel-red);
  box-shadow: 0 0 15px rgba(237, 29, 36, 0.25);
}

.form-group input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(237, 29, 36, 0.25);
  border-radius: 8px;
  color: var(--text-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea:focus {
  border-color: var(--marvel-red);
  box-shadow: 0 0 15px rgba(237, 29, 36, 0.25);
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ---------- Radio Buttons ---------- */
.radio-group {
  display: flex;
  gap: 12px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
}

/* "I'm In!" — Avengers gold */
.radio-option input[type="radio"]:checked + label.attending-yes {
  border-color: var(--hero-gold);
  background: rgba(255, 215, 0, 0.12);
  color: var(--hero-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

/* "Can't make it" — red */
.radio-option input[type="radio"]:checked + label.attending-no {
  border-color: var(--marvel-red);
  background: rgba(237, 29, 36, 0.12);
  color: var(--marvel-red);
  box-shadow: 0 0 15px rgba(237, 29, 36, 0.25);
}

.radio-option label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(237, 29, 36, 0.35);
}

/* ---------- Submit Button ---------- */
.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(237, 29, 36, 0.25), rgba(180, 10, 15, 0.4));
  border: 1px solid var(--marvel-red);
  border-radius: 8px;
  color: var(--marvel-red);
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, rgba(237, 29, 36, 0.45), rgba(180, 10, 15, 0.6));
  box-shadow: 0 0 25px rgba(237, 29, 36, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-submit:active {
  transform: translateY(0);
}

/* ---------- Success / Error Messages ---------- */
.message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.message.success {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--hero-gold);
}

.message.error {
  background: rgba(237, 29, 36, 0.1);
  border: 1px solid rgba(237, 29, 36, 0.35);
  color: var(--marvel-red);
}

/* ---------- Guest List ---------- */
.guest-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.guest-list-card h2 {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  color: var(--marvel-red);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 4px;
  text-shadow: 0 0 12px rgba(237, 29, 36, 0.4);
}

.guest-count {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 1px;
  font-weight: 600;
}

.guest-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(237, 29, 36, 0.08);
  transition: background 0.2s ease;
}

.guest-entry:last-child {
  border-bottom: none;
}

.guest-entry:hover {
  background: rgba(237, 29, 36, 0.04);
}

.guest-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
}

.guest-comment {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 4px 0;
  padding-left: 4px;
  border-left: 2px solid rgba(237, 29, 36, 0.35);
}

.guest-status {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Attending = gold (hero) */
.guest-status.attending {
  background: rgba(255, 215, 0, 0.15);
  color: var(--hero-gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

/* Not attending = red */
.guest-status.not-attending {
  background: rgba(237, 29, 36, 0.15);
  color: var(--marvel-red);
  border: 1px solid rgba(237, 29, 36, 0.35);
}

.guest-date {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.no-guests {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 30px 0;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-area {
    flex-direction: column;
    align-items: center;
  }

  .character {
    flex: 0 0 auto;
    padding-top: 10px;
  }

  .character.hero {
    order: 1;
  }

  .center-panel {
    order: 2;
    max-width: 100%;
  }

  .character.villain {
    order: 3;
  }

  .content-area {
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .page-wrapper {
    padding: 10px;
  }

  .form-card, .guest-list-card {
    padding: 20px;
  }

  .character .char-img {
    height: 180px;
    width: auto;
  }

  .radio-group {
    flex-direction: column;
  }

  .lang-switcher {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 10px;
    align-self: flex-end;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px !important;
    font-size: 0.65rem !important;
  }
}

/* ============================================
   Admin Panel Styles
   ============================================ */

/* ---------- Admin Login Card ---------- */
.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
  margin-top: 30px;
}

.admin-login-card h2 {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  color: var(--marvel-red);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 4px;
}

/* ---------- Admin Panel ---------- */
.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(237, 29, 36, 0.15);
}

.admin-topbar h2 {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  color: var(--marvel-red);
  letter-spacing: 3px;
}

.admin-actions-top {
  display: flex;
  gap: 12px;
}

.admin-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  font-weight: 600;
}

.admin-link:hover {
  color: var(--marvel-gold);
  border-color: rgba(240, 192, 32, 0.4);
}

.admin-link.logout {
  border-color: rgba(237, 29, 36, 0.3);
  color: var(--marvel-red);
}

.admin-link.logout:hover {
  background: rgba(237, 29, 36, 0.1);
  border-color: var(--marvel-red);
}

/* ---------- Admin Table ---------- */
.admin-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 0.68rem;
  color: var(--marvel-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(237, 29, 36, 0.25);
  font-weight: 700;
}

.admin-table td {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.admin-table td.guest-comment {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 200px;
}

.admin-table tbody tr:hover {
  background: rgba(237, 29, 36, 0.04);
}

/* ---------- Delete Button ---------- */
.btn-delete {
  background: rgba(237, 29, 36, 0.1);
  border: 1px solid rgba(237, 29, 36, 0.3);
  color: var(--marvel-red);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-delete:hover {
  background: rgba(237, 29, 36, 0.25);
  border-color: var(--marvel-red);
  box-shadow: 0 0 12px rgba(237, 29, 36, 0.25);
}

/* ---------- Clear All Button ---------- */
.clear-all-form {
  margin-top: 24px;
  text-align: center;
}

.btn-clear-all {
  background: rgba(237, 29, 36, 0.08);
  border: 1px solid rgba(237, 29, 36, 0.3);
  color: var(--marvel-red);
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-clear-all:hover {
  background: rgba(237, 29, 36, 0.2);
  border-color: var(--marvel-red);
  box-shadow: 0 0 20px rgba(237, 29, 36, 0.3);
}

/* ---------- Admin Sections ---------- */
.admin-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-section-title {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1rem;
  color: var(--marvel-red);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

/* ---------- Event Settings Form ---------- */
.event-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.event-form-grid input[type="date"],
.event-form-grid input[type="time"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(237, 29, 36, 0.25);
  border-radius: 8px;
  color: var(--text-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-form-grid input[type="date"]:focus,
.event-form-grid input[type="time"]:focus {
  border-color: var(--marvel-red);
  box-shadow: 0 0 15px rgba(237, 29, 36, 0.2);
}

.event-form-grid input[type="date"]::-webkit-calendar-picker-indicator,
.event-form-grid input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

@media (max-width: 600px) {
  .event-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Theme Selector (Admin) ---------- */
.theme-select {
  width: 100%;
  max-width: 320px;
  padding: 12px 40px 12px 16px;
  background: rgba(255, 255, 255, 0.05)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238080a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: 1px solid rgba(237, 29, 36, 0.25);
  border-radius: 8px;
  color: var(--text-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-select:focus {
  border-color: var(--marvel-red);
  box-shadow: 0 0 15px rgba(237, 29, 36, 0.2);
}

.theme-select option {
  background: #1a1a2e;
  color: var(--text-light);
}

/* ---------- Side Badges (Guest List) ---------- */
.side-badge {
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.side-badge.side-hero {
  background: rgba(79, 195, 247, 0.12);
  color: #4FC3F7;
  border: 1px solid rgba(79, 195, 247, 0.35);
}

.side-badge.side-villain {
  background: rgba(123, 47, 190, 0.12);
  color: var(--villain-purple);
  border: 1px solid rgba(123, 47, 190, 0.35);
}

/* Side radio label styles */
.radio-option input[type="radio"]:checked + label.side-hero {
  border-color: #4FC3F7;
  background: rgba(79, 195, 247, 0.12);
  color: #4FC3F7;
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.25);
}

.radio-option input[type="radio"]:checked + label.side-villain {
  border-color: var(--villain-purple);
  background: rgba(123, 47, 190, 0.12);
  color: var(--villain-purple);
  box-shadow: 0 0 15px rgba(123, 47, 190, 0.25);
}

/* ============================================
   Spider-Man Theme
   ============================================ */

body[data-theme="spiderman"] {
  --hero-gold:     #4FC3F7;
  --villain-purple:#66BB6A;
  --border-glow:   rgba(0, 48, 130, 0.45);
  --marvel-gold:   #4FC3F7;
  background-image: url('images/spiderman_background.png');
}

body[data-theme="spiderman"] .header-logo {
  filter:
    drop-shadow(0 0 12px rgba(0, 48, 130, 0.6))
    drop-shadow(0 0 30px rgba(230, 36, 41, 0.25));
}

body[data-theme="spiderman"] .header-logo:hover {
  filter:
    drop-shadow(0 0 22px rgba(0, 48, 130, 0.85))
    drop-shadow(0 0 55px rgba(230, 36, 41, 0.4));
}

body[data-theme="spiderman"] .character.hero .char-name {
  color: #4FC3F7;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.6);
}

body[data-theme="spiderman"] .character.villain .char-name {
  color: #66BB6A;
  text-shadow: 0 0 10px rgba(102, 187, 106, 0.6);
}

@keyframes spider-hero-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(79,195,247,0.55))
            drop-shadow(0 0 20px rgba(79,195,247,0.22));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(79,195,247,0.9))
            drop-shadow(0 0 45px rgba(79,195,247,0.45));
  }
}

@keyframes spider-villain-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(102,187,106,0.55))
            drop-shadow(0 0 20px rgba(102,187,106,0.22));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(102,187,106,0.9))
            drop-shadow(0 0 45px rgba(102,187,106,0.45));
  }
}

body[data-theme="spiderman"] .character.hero .char-img {
  animation: spider-hero-glow 2.5s ease-in-out infinite;
  width: 250px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}

body[data-theme="spiderman"] .character.villain .char-img {
  animation: spider-villain-glow 2.5s ease-in-out infinite;
  width: 250px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}

body[data-theme="spiderman"] .lang-switcher a:hover,
body[data-theme="spiderman"] .lang-switcher a.active {
  color: #4FC3F7;
}

body[data-theme="spiderman"] .lang-switcher a.active {
  background: rgba(79, 195, 247, 0.12);
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}
