/* public/style.css */

body {
  background-image: url('/images/login-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #0f1115;
  color: #f0f0f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 40px 20px;
  box-sizing: border-box;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Header styles */
.header { margin-bottom: 30px; }

/* --- INTRO SEQUENCE STYLES --- */
.intro-sequence {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
}
.intro-sequence .logo { width: 100%; height: auto; }
.hidden { display: none; }
.bubbles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.chat-bubble { position: absolute; width: 120px; height: auto; opacity: 0; }
.chat-bubble.left { top: 10%; right: 90%; }
.chat-bubble.right { top: 10%; left: 90%; }
.chat-bubble.is-popping { animation: pop-in-out 4s ease-in-out; }
@keyframes pop-in-out {
  0% { opacity: 0; transform: scale(0.5); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5); }
}

/* --- TITLE IMAGES --- */
.title-image {
  display: block;
  margin: 0 auto 12px;
  width: 100%;
  max-width: 550px;
  height: auto;
}
.subtitle-image {
  display: block;
  margin: 0 auto 15px;
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* === MAIN CONTENT SECTIONS === */
.showcase, .subscription-plans, .settings-form {
  margin-top: 30px;
}

.showcase-video {
  width: 100%;
  max-width: 950px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #2a303d;
  display: block;
  margin: 0 auto;
}

.subscription-plans, .settings-form {
  padding: 20px;
  background-color: #161a22;
  border: 1px solid #2a303d;
  border-radius: 12px;
  text-align: center;
}

/* === PLAN CARD STYLES === */
.plan-cards-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.plan-card {
  background-color: #0f1115;
  border: 1px solid #2a303d;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: #6b758c;
}

/* ADDED style for the selected card highlight */
.plan-card.selected {
  border-color: #53fc18;
  box-shadow: 0 0 20px rgba(83, 252, 24, 0.3);
  transform: translateY(-5px);
}

.plan-characters {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.plan-average {
  font-size: 0.8em;
  color: #a0a0a0;
  min-height: 30px;
  margin: 5px 0 10px;
}

.plan-price {
  font-size: 2em;
  font-weight: bold;
  color: #53fc18;
}

.plan-price span {
  font-size: 0.5em;
  color: #a0a0a0;
  font-weight: normal;
}

.plan-button {
  background-color: #2a303d;
  color: #f0f0f0;
  border: 1px solid #4a5263;
  border-radius: 6px;
  padding: 10px 20px;
  width: 100%;
  font-weight: bold;
  margin-top: auto;
  /* opacity: 0.7; */
  cursor: pointer;
}

.plan-note {
  font-size: 0.9em;
  color: #a0a0a0;
  margin-top: auto;
  padding-top: 20px;
}

/* === TESTIMONIAL STYLES === */
.testimonial-container {
  position: fixed;
  top: 0;
  height: 100vh;
  z-index: 1000;
  pointer-events: none;
  width: calc((100vw - 1200px) / 2);
}
#testimonial-container-left { left: 0; }
#testimonial-container-right { right: 0; }
.testimonial-item {
  position: absolute;
  opacity: 0;
  max-width: 350px;
  text-align: center;
  animation: fade-in-out-pop 50s infinite ease-in-out;
  top: calc(var(--random-y) * (100vh - 150px));
  left: calc(var(--random-x) * (100% - 300px));
  padding: 15px;
  border-radius: 8px;
}
.testimonial-text { margin: 0 0 15px; font-style: italic; color: #e0e0e0; font-size: 1.2em; line-height: 1.6; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); }
.testimonial-author { margin: 0; font-weight: bold; color: #a0c4ff; font-size: 1em; text-align: right; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.testimonial-item:nth-child(1) { animation-delay: 0s; }
.testimonial-item:nth-child(2) { animation-delay: 10s; }
.testimonial-item:nth-child(3) { animation-delay: 20s; }
.testimonial-item:nth-child(4) { animation-delay: 30s; }
.testimonial-item:nth-child(5) { animation-delay: 40s; }
@keyframes fade-in-out-pop {
  0% { opacity: 0; }
  8% { opacity: 1; }
  16% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

/* === FORM ELEMENT STYLES === */
.settings-form h2, .subscription-plans h2 { font-size: 1.8em; margin-bottom: 25px; border-bottom: 1px solid #2a303d; padding-bottom: 15px; margin-top: 0; }
.settings-form label { display: block; margin: 15px 0 8px; font-weight: 500; color: #c0c0c0; font-size: 1.1em; text-align: center; } 
.settings-form select { width: 85%; padding: 12px; border-radius: 8px; border: 1px solid #333; background-color: #0f1115; color: #f0f0f0; font-size: 1em; text-align: center; text-align-last: center; -moz-text-align-last: center; display: block; margin: 0 auto; } 
.settings-form select option { text-align: center; }
.kick-button { display: block; width: auto; padding: 12px 40px; background-color: #53fc18; color: #0f1115; font-weight: bold; margin: 25px; cursor: pointer; border: none; font-size: 1.1em; border-radius: 8px; }
.kick-button:hover { background-color: #49dd15; }

/* Narrow only the Configure & Authorize container */
.settings-form {
  max-width: 500px;
  margin: 30px auto 0;
}

/* Center the button under the dropdown */
.settings-form .kick-button {
  margin: 25px auto 0;
}