/* ===== BASE THEME (was style.css) ===== */
:root {
  --bg: #fff7ee;
  --ink: #2b2140;
  --plum: #5b2a86;
  --pink: #ff5d8f;
  --sun: #ffc83d;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, var(--pink) 0, transparent 45%),
    radial-gradient(circle at 80% 80%, var(--sun) 0, transparent 40%),
    var(--plum);
}

.hero-date { font-size: 1.1rem; margin-bottom: 0.75rem; opacity: 0.9; }

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  margin-bottom: 1rem;
}

.hero-sub { font-size: 1.2rem; max-width: 32rem; margin-bottom: 2rem; }

/* Button */
.btn {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Sections */
main { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

section { padding: 4rem 0; text-align: center; }

section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--plum);
  margin-bottom: 1.25rem;
}

.message p { max-width: 38rem; margin: 0 auto; font-size: 1.15rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery figure {
  background: var(--card);
  padding: 0.75rem 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(43, 33, 64, 0.15);
}

.gallery figure:nth-child(odd)  { transform: rotate(-1.5deg); }
.gallery figure:nth-child(even) { transform: rotate(1.5deg); }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #eadff5; /* shows until you add real photos */
}

.gallery figcaption { margin-top: 0.6rem; font-size: 0.95rem; }

/* Wish */
.wish-text {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--pink);
  margin-top: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--plum);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ===== Glass navigation ===== */
.glass-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem;
  max-width: calc(100% - 1.5rem);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(43, 33, 64, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

.glass-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.glass-nav a:hover,
.glass-nav a.active { background: rgba(255, 255, 255, 0.3); }

.glass-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ===== Glass card (used on Wishes and Sorry pages) ===== */
.subpage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 3rem;
  color: #fff;
  background:
    radial-gradient(circle at 15% 25%, var(--pink) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, var(--sun) 0, transparent 40%),
    var(--plum);
}

.glass-card {
  width: min(36rem, 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(43, 33, 64, 0.3);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.glass-card h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.glass-card p { margin-bottom: 1rem; font-size: 1.1rem; }
.glass-card .btn { margin-top: 0.75rem; }

.wish-list { list-style: none; text-align: left; margin: 1.25rem 0; }
.wish-list li {
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

@media (max-width: 480px) {
  .glass-nav a { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
}

/* ===== Video ===== */
.video-frame {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(43, 33, 64, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
}

/* ===== Play button over video ===== */
.video-wrap { position: relative; }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(43, 33, 64, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.play-btn:hover { background: rgba(255, 255, 255, 0.35); }
.play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.play-btn[hidden] { display: none; }

/* Full-width coloured background on Wishes, Sorry and VPN pages (removes white sides) */
main.subpage { max-width: none; width: 100%; margin: 0; }

/* ===== VPN / EXTRAS (was extras.css) ===== */
/* Extra section: private videos access steps.
   Linked in index.html after the main theme, so it works with any theme. */

.more-videos {
  padding: 4rem 1.25rem 5rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 93, 143, 0.35) 0, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(60, 242, 255, 0.25) 0, transparent 45%),
    #17102b;
  color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.more-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.more-card h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #fff;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
  padding: 0;
}

.more-intro { color: rgba(255, 255, 255, 0.78); margin-bottom: 2rem; }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #ffd23f;
  color: #17102b;
  font-weight: 800;
}

.steps h3 { font-size: 1.1rem; color: #fff; }
.steps p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); flex: 1; }

.more-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #ffd23f;
  color: #17102b;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease;
}

.more-btn:hover { transform: translateY(-2px); }
.more-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.more-btn.alt {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-left: 0.4rem;
}

.more-btn.big { padding: 0.9rem 2rem; font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .more-btn { transition: none; }
}

/* VPN page: h1 inside the card */
.more-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #fff;
}

.subpage > .more-card { width: min(52rem, 100%); }

/* ===== CHAT + ADMIN (was chat.css) ===== */
/* Live chat styles (work with any theme) */
.chat-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1rem 2rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 93, 143, 0.4) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(60, 242, 255, 0.3) 0, transparent 45%),
    #17102b;
  color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.chat-card {
  width: min(40rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.chat-card h1 { font-size: 1.7rem; line-height: 1.2; color: #fff; }
.chat-status { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }

.msgs {
  height: 50vh;
  min-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
}

.msg {
  max-width: 80%;
  padding: 0.55rem 0.9rem;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.msg small { display: block; margin-top: 0.15rem; font-size: 0.72rem; opacity: 0.65; }

.msg.me   { align-self: flex-end;   background: #ffd23f; color: #17102b; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: rgba(255, 255, 255, 0.18); color: #fff; border-bottom-left-radius: 4px; }

.chat-form { display: flex; gap: 0.5rem; }

.chat-form input,
.login-form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.chat-form input::placeholder,
.login-form input::placeholder { color: rgba(255, 255, 255, 0.55); }

.chat-form input:focus-visible,
.login-form input:focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }

.chat-form button,
.login-form button,
.chat-link {
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #17102b;
  background: #ffd23f;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.chat-form button:disabled,
.chat-form input:disabled { opacity: 0.5; cursor: not-allowed; }

.name-row input { width: 100%; flex: none; }

/* Admin layout */
.admin-grid { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; }

.convo-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 60vh;
  overflow-y: auto;
}

.convo-list button {
  text-align: left;
  padding: 0.6rem 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
}

.convo-list button strong { display: block; }
.convo-list button span { font-size: 0.8rem; opacity: 0.7; }
.convo-list button.on { background: rgba(255, 210, 63, 0.3); border-color: #ffd23f; }

.login-form { display: flex; flex-direction: column; gap: 0.6rem; }

@media (max-width: 40rem) {
  .admin-grid { grid-template-columns: 1fr; }
  .convo-list { flex-direction: row; max-height: none; overflow-x: auto; }
  .convo-list button { min-width: 9rem; }
}

/* Live agent header */
.agent-head { display: flex; align-items: center; gap: 0.9rem; }

.avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  color: #17102b;
  background: linear-gradient(135deg, #ffd23f, #ff5d8f);
  flex: none;
}

.agent-state { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

.dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #8a84a3; }
.dot.on { background: #2ee6a6; box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.25); }

.typing { font-size: 0.85rem; font-style: italic; color: rgba(255, 255, 255, 0.75); margin-top: -0.4rem; }
.typing[hidden] { display: none; }

/* ===== Full width page (removes white sides) ===== */
main.chat-page { max-width: none; width: 100%; margin: 0; }

/* ===== Split layout: photos on the left, chat on the right ===== */
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
  gap: 1.5rem;
  width: min(74rem, 100%);
  align-items: stretch;
}

.chat-layout .chat-card { width: 100%; animation: fromRight 0.8s ease-out both; }

.photo-rail {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  min-height: 32rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  animation: fromLeft 0.8s ease-out both;
}

.rail-col {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}

.rail-track {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: railUp 40s linear infinite;
}

.rail-col.down .rail-track { animation-name: railDown; animation-duration: 48s; }

.photo-rail:hover .rail-track { animation-play-state: paused; }

.tile {
  flex: none;
  border-radius: 16px;
  /* your photo, with a colourful fallback until you add real photos */
  background:
    var(--img) center / cover no-repeat,
    linear-gradient(135deg, #6b2d5c, #ff5d8f 60%, #ffd23f);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}

.tile:hover { transform: scale(1.03); }

.tile.t1 { aspect-ratio: 3 / 4; }
.tile.t2 { aspect-ratio: 1 / 1; }
.tile.t3 { aspect-ratio: 4 / 5; }
.tile.t4 { aspect-ratio: 2 / 3; }

.rail-badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(18, 12, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

/* one full set of tiles = half the track plus half a gap */
@keyframes railUp   { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 0.4rem)); } }
@keyframes railDown { from { transform: translateY(calc(-50% - 0.4rem)); } to { transform: translateY(0); } }

@keyframes fromLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fromRight { from { opacity: 0; transform: translateX(40px); }  to { opacity: 1; transform: none; } }

/* Phones and tablets: photos on top as a shorter strip */
@media (max-width: 52rem) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .photo-rail { min-height: 13rem; height: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-track, .photo-rail, .chat-layout .chat-card { animation: none; }
  .tile { transition: none; }
}

/* ===== SORRY PAGE (was inline <style> in sorry.html) ===== */
.language-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.lang-btn {
  padding: 10px 22px;
  border: 1px solid #e8a0b5;
  border-radius: 25px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
  background: #e88ba8;
  color: white;
  border-color: #e88ba8;
}

.subpage #message {
  line-height: 1.8;
  text-align: left;
}

.subpage #message p {
  margin-bottom: 18px;
}

.subpage #message h2 {
  text-align: center;
  margin: 25px 0;
}
