/* LoveWall — shared design system (base.css)
   Tokens + buttons + inputs + testimonial/video cards.
   Faithful to Senja's look: soft borders, generous radius, subtle shadows. */

:root {
  --accent: #3f33e0;
  --accent-dark: #2f24c4;
  --star: #f2b136;
  --hl-bg: #fdf0c3;
  --text: #111827;
  --muted: #6b7280;
  --border: #e7e8ee;
  --input-bg: #f1f2f5;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Minimal reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, #4a3ee8, #3628d8);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(63, 51, 224, 0.14),
    0 8px 22px rgba(63, 51, 224, 0.35);
  transition: filter 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d7d9e0;
}

/* ---------- Inputs ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(63, 51, 224, 0.18);
}

/* ---------- Headings ---------- */
h1 {
  margin: 0 0 8px;
  color: #0b0b0f;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.2;
}

/* ---------- Stars (5 inline SVG stars) ---------- */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 0;
}

.stars svg {
  width: 22px;
  height: 22px;
  fill: var(--star);
}

.stars[data-rating] svg.off {
  fill: #d7d9e0;
}

/* ---------- Testimonial text card ---------- */
.t-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
  padding: 24px;
}

.t-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.t-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--input-bg);
}

.t-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.t-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.3;
}

.t-card .stars {
  margin-bottom: 12px;
}

.t-text {
  font-size: 17px;
  line-height: 1.65;
  color: #1f2937;
}

.t-text mark,
mark {
  background: var(--hl-bg);
  padding: 1px 3px;
  border-radius: 4px;
  color: inherit;
}

.t-date {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Video card ---------- */
.v-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.v-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.v-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.v-overlay .stars svg {
  width: 16px;
  height: 16px;
}

.v-name {
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.v-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.3;
}

.v-play {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.v-play:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.v-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--text);
}
