/* ── Language selector ────────────────────────────────────────────────── */
.btn-lang {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  color: white;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.btn-lang:hover,
.btn-lang.show {
  background: rgba(0,0,0,0.5);
  color: white;
}
.btn-lang::after {
  filter: invert(1);
}
.lang-code {
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lang-dropdown {
  background: rgba(20,20,20,0.96);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0.35rem 0;
  min-width: 160px;
}
.lang-dropdown .dropdown-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0;
}
.lang-dropdown .dropdown-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.lang-dropdown .dropdown-item.active {
  background: rgba(106,191,66,0.25);
  color: white;
  font-weight: 600;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
  background: url('/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.logo-img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* ── Cards (semiBG) ───────────────────────────────────────────────────── */
.lol-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  color: white;
}

/* ── Section headings ─────────────────────────────────────────────────── */
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ── YouTube channel grid ─────────────────────────────────────────────── */
.yt-link {
  position: relative;
  text-align: center;
  width: 150px;
  height: 180px;
  display: inline-block;
}
.channel-img {
  margin: 8px;
  padding: 0;
  vertical-align: bottom;
  width: 128px;
  height: 128px;
}
.flagstyle {
  position: absolute;
  top: 10px;
  left: 8px;
  font-size: 2em;
  border: 1px solid black;
  line-height: 1;
  -webkit-transition: all 500ms ease;
  transition: all 500ms ease;
}
.yt-channel-title {
  text-align: center;
  width: 150px;
  color: white;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.yt-link:hover .flagstyle {
  border: 1px solid white;
  font-size: 2.2em;
  top: 7px;
  left: 5px;
}
.shadowed {
  -webkit-filter: drop-shadow(5px 5px 7px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(5px 5px 7px rgba(0, 0, 0, 0.2));
}
img.shadowed:hover {
  -webkit-filter: drop-shadow(5px 5px 7px rgba(0, 0, 0, 0.5));
  filter: drop-shadow(5px 5px 7px rgba(0, 0, 0, 0.5));
}
a.yt-channel-link {
  color: white;
  text-decoration: none;
  display: inline-block;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}
a.yt-channel-link:hover {
  color: white;
  text-decoration: none;
}

/* ── Books section ────────────────────────────────────────────────────── */
.book-preview {
  text-align: center;
}
.book-preview-link {
  display: block;
  text-decoration: none;
}
.book-preview-link:hover .book-title-display {
  text-decoration: underline;
}
.book-cover {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  transition: opacity 0.15s ease;
  display: block;
  margin: 0 auto;
}
.book-title-display {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-top: 0.6rem;
  transition: opacity 0.15s ease;
  min-height: 1.4em;
}
.book-lang-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.btn-book {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
}
.btn-book:hover {
  background: rgba(255,255,255,0.3);
  color: white;
}

/* ── Honeypot (must not use display:none — bots detect it) ───────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ── Contact section ──────────────────────────────────────────────────── */
.contact-icon {
  width: 50%;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(5px 5px 7px rgba(0,0,0,0.2));
}
.contact-intro p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.6;
}
.form-label {
  color: white !important;
}
.form-text {
  color: rgba(255,255,255,0.65) !important;
}
.platform-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.platform-option input[type="radio"] {
  display: none;
}
.platform-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
  user-select: none;
}
.platform-btn:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}
.platform-option input:checked + .platform-btn {
  border-color: white;
  background: rgba(255,255,255,0.2);
  color: white;
  font-weight: 600;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-lol {
  background: linear-gradient(135deg, #4a8e2c, #6abf42);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: filter 0.2s, transform 0.2s;
}
.btn-lol:hover, .btn-lol:focus {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline-lol {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-lol:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* ── Form controls ────────────────────────────────────────────────────── */
.form-control:focus {
  border-color: #6abf42;
  box-shadow: 0 0 0 0.2rem rgba(106,191,66,0.25);
}
.handle-feedback {
  font-size: 0.82rem;
  margin-top: 0.25rem;
  min-height: 1.2em;
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}
.handle-feedback:empty {
  padding: 0;
}
.handle-feedback.valid {
  color: #fff;
  background: rgba(74, 142, 44, 0.75);
}
.handle-feedback.warning {
  color: #fff;
  background: rgba(160, 120, 0, 0.7);
}
.handle-feedback.invalid {
  color: #fff;
  background: rgba(180, 40, 40, 0.75);
}

/* ── Event page ───────────────────────────────────────────────────────── */
.event-card {
  max-width: 900px;
  margin: 0 auto;
}
.event-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}
.event-meta {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.event-meta i {
  margin-right: 0.25rem;
}
.event-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.event-item:last-of-type {
  border-bottom: none;
}
.item-title {
  font-weight: 700;
  color: white;
  font-size: 1rem;
}
