/* fas2.css — Inbjudan */

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--color-rust-deep);
  color: var(--color-cream);
  padding: var(--space-6) var(--page-pad);
  text-align: center;
}

.hero-logo {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 2px 16px rgba(240, 146, 61, 0.5));
}

.hero-guest-name {
  color: var(--color-amber);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-amber);
  margin-bottom: var(--space-1);
}

.hero-date {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-amber);
  margin-bottom: var(--space-3);
}

.hero-intro {
  font-size: var(--text-base);
  color: #F0DAB8;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.hero .btn-accent {
  font-size: var(--text-lg);
  padding: 0.875rem var(--space-4);
  min-height: 52px;
}

.hero-osa-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.hero-osa-status-text {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #fff;
}

.hero-osa-status-change {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
}

/* ─── Quick info cards ────────────────────────────────────────────────── */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-4) var(--page-pad);
  max-width: var(--max-width);
  margin-inline: auto;
}

.info-card {
  background: #fff;
  border: var(--border-rust);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
}

.info-card-label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-amber-deep);
}

.info-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: bold;
  color: var(--color-rust-deep);
}

/* ─── OSA-namnvisning ─────────────────────────────────────────────────── */
.osa-name-display {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--color-rust-light);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-rust-deep);
  font-weight: 500;
}

.osa-name-display:empty {
  display: none;
}

/* ─── OSA ─────────────────────────────────────────────────────────────── */
.osa-form {
  width: 100%;
}

/* Svarsknapparna — tre stora, touch-vänliga */
.svar-fieldset {
  border: none;
  margin-bottom: var(--space-4);
}

.svar-fieldset legend {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-rust-deep);
  margin-bottom: var(--space-3);
}

.svar-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.svar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 64px;        /* generöst touch-target */
  padding: var(--space-2) var(--space-3);
  background: #fff;
  border: 1.5px solid var(--color-rust-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.svar-btn:active {
  transform: scale(0.98);
}

.svar-btn[aria-pressed='true'] {
  border-color: var(--color-rust);
  background: var(--color-rust-light);
  color: var(--color-rust-deep);
  font-weight: 600;
}

.svar-btn[data-svar='yes'][aria-pressed='true'] {
  border-color: var(--color-rust);
  background: var(--color-rust-light);
}

.svar-btn[data-svar='maybe'][aria-pressed='true'] {
  border-color: var(--color-amber);
  background: var(--color-amber-light);
}

.svar-btn[data-svar='no'][aria-pressed='true'] {
  border-color: #c0392b;
  background: #fff0ef;
}

.svar-btn-emoji {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Formulärfälten som visas efter svarsknappar */
.osa-fields {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bekräftelse */
.osa-success {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.osa-success-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.osa-success h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.osa-success p {
  color: var(--color-text-muted);
}

/* ─── Info-vy ─────────────────────────────────────────────────────────── */
.program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.program-list li {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}

/* ─── Önskelista ──────────────────────────────────────────────────────── */
.wish-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wish-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: #fff;
  border: var(--border-rust);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.wish-item-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.wish-item-text {
  flex: 1;
}

.wish-item-title {
  font-weight: 600;
  color: var(--color-rust-deep);
  margin-bottom: 2px;
}

.wish-item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ─── Desktop ─────────────────────────────────────────────────────────── */
@media (min-width: 680px) {
  .hero {
    padding: var(--space-6) var(--space-4);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero-title { font-size: var(--text-2xl); }

  .svar-buttons {
    flex-direction: row;
  }

  .svar-btn {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
  }

  .svar-btn-emoji {
    font-size: 2.25rem;
  }
}

/* ─── Venue (plats) ───────────────────────────────────────────────────── */

.venue-map {
  margin-top: var(--space-3);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

.venue-photos {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
}

.venue-thumb {
  flex: 0 0 auto;
  width: 110px;
  height: 80px;
  padding: 0;
  border: 2px solid var(--color-amber);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.venue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Venue lightbox ──────────────────────────────────────────────────── */

.venue-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-lb-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md, 8px);
  object-fit: contain;
}

.venue-lb-close,
.venue-lb-prev,
.venue-lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
}

.venue-lb-close { top: var(--space-2); right: var(--space-2); font-size: 1.5rem; }
.venue-lb-prev  { left: var(--space-2); }
.venue-lb-next  { right: var(--space-2); }

/* ─── OSA Deadline-banner ─────────────────────────────────────────────── */

.osa-deadline-banner {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-rust-deep);
  background: var(--color-rust-light, #FCE7CC);
  border: 2px solid var(--color-amber);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.osa-deadline-banner strong {
  color: var(--color-amber-deep, #9C5B0E);
  font-size: var(--text-lg, 1.15rem);
}

/* ─── Profilbild ──────────────────────────────────────────────────────── */

.profil-bild-section {
  text-align: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-cream-dark, #EFDDC4);
}

.profil-bild-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.profil-bild-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream, #faf7f0);
}

.profil-bild-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil-bild-placeholder {
  font-size: 2.5rem;
  line-height: 1;
}

.profil-bild-label {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-rust-deep);
  margin: 0;
}

.profil-bild-hint {
  font-size: var(--text-sm);
  color: var(--color-text-light, #8A7F72);
  margin: 0;
}

.profil-bild-upload-btn {
  cursor: pointer;
  display: inline-block;
}

.profil-bild-feedback {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md, 8px);
}

.profil-bild-feedback--ok {
  color: var(--color-rust-deep);
  background: rgba(107, 46, 14, 0.08);
}

.profil-bild-feedback--err {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}
