/* assets/custom.css — Sommerhus Kalender */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --linen:       #f7f3ed;
  --linen-dark:  #ede8df;
  --sage:        #7a9e87;
  --sage-dark:   #5e7f6a;
  --terra:       #c07850;
  --terra-dark:  #a0623e;
  --ink:         #2c2c2c;
  --muted:       #6b6b6b;
  --border:      #d8d0c4;
  --white:       #ffffff;
  --radius:      10px;
  --shadow-sm:   0 2px 8px rgba(44,44,44,.08);
  --shadow-md:   0 6px 24px rgba(44,44,44,.13);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--linen);
  color: var(--ink);
  font-family: "Verdana", "Helvetica", "Arial", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, .brand {
  font-family: "Verdana", "Helvetica", "Arial", sans-serif;
  font-weight: 600;
}

a { color: var(--sage-dark); }
a:hover { color: var(--terra); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  background: var(--white) !important;
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  font-family: "Verdana", "Helvetica", "Arial", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink) !important;
  letter-spacing: -.01em;
}
.navbar-brand span { color: var(--terra); }
.nav-link { color: var(--muted) !important; font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--sage-dark) !important; }
.nav-link.text-danger { color: #b94040 !important; }

/* ── Cards / Panels ──────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.card-header {
  background: var(--linen-dark);
  border-bottom: 1px solid var(--border);
  font-family: "Verdana", "Helvetica", "Arial", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: .75rem 1.25rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}
.btn-danger  { background: #b94040; border-color: #b94040; font-weight:600; }
.btn-warning { background: var(--terra); border-color: var(--terra); color:#fff; font-weight:600; }
.btn-warning:hover { background: var(--terra-dark); border-color: var(--terra-dark); color:#fff; }
.btn-outline-secondary {
  border-color: var(--border);
  color: var(--muted);
  font-weight: 600;
}
.btn-outline-secondary:hover {
  background: var(--linen-dark);
  border-color: var(--border);
  color: var(--ink);
}

/* ── Form controls ───────────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.form-control:focus, .form-select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122,158,135,.2);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(122,158,135,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(192,120,80,.12) 0%, transparent 55%),
    var(--linen);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo .house-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: .4rem;
}
.auth-logo h1 {
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0;
}
.auth-logo h1 span { color: var(--terra); }

/* ── Subscribe section ───────────────────────────────────── */
.subscribe-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.subscribe-panel .panel-title {
  font-family: "Verdana", "Helvetica", "Arial", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.subscribe-panel .panel-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}
.ics-input-group { display: flex; gap: .5rem; }
.ics-input-group input { flex: 1; font-size: .82rem; }
.ics-input-group .btn { white-space: nowrap; }

/* ── FullCalendar overrides ──────────────────────────────── */
.fc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fc-toolbar-title {
  font-family: "Verdana", "Helvetica", "Arial", sans-serif !important;
  font-size: 1.25rem !important;
  color: var(--ink);
}
.fc-button-primary {
  background: var(--sage) !important;
  border-color: var(--sage-dark) !important;
  font-weight: 600 !important;
}
.fc-button-primary:hover {
  background: var(--sage-dark) !important;
}
.fc-button-primary:not(:disabled).fc-button-active {
  background: var(--sage-dark) !important;
  border-color: var(--ink) !important;
}
.fc-day-today { background: rgba(122,158,135,.08) !important; }
.fc-event {
  border-radius: 4px !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
}
.fc-col-header-cell { background: var(--linen-dark); }
.fc-col-header-cell-cushion {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .06em;
}
.fc-daygrid-day-number { color: var(--muted); font-weight: 600; }

/* ── Event modal ─────────────────────────────────────────── */
.modal-header {
  background: var(--linen-dark);
  border-bottom: 1px solid var(--border);
}
.modal-title { font-family: "Verdana", "Helvetica", "Arial", sans-serif; }

/* ── Admin table ─────────────────────────────────────────── */
.table { font-size: .9rem; }
.table th {
  background: var(--linen-dark);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}
.badge-pending  { background: #e9a920; color: #fff; }
.badge-approved { background: var(--sage); color: #fff; }
.badge-disabled { background: #b94040; color: #fff; }

/* ── QR modal ────────────────────────────────────────────── */
#qr-canvas-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
#qr-canvas-wrap canvas, #qr-canvas-wrap img {
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
}

/* ── How-to accordion ────────────────────────────────────── */
.accordion-button {
  font-weight: 600;
  font-size: .88rem;
  background: var(--linen-dark);
  color: var(--ink);
}
.accordion-button:not(.collapsed) {
  background: var(--linen-dark);
  color: var(--sage-dark);
  box-shadow: none;
}
.accordion-body { font-size: .88rem; line-height: 1.7; }

/* ── Utilities ───────────────────────────────────────────── */
.text-terra { color: var(--terra); }
.text-sage  { color: var(--sage-dark); }
.page-header {
  margin-bottom: 1.5rem;
}
.page-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink);
}

@media (max-width: 576px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .fc-toolbar { flex-direction: column; gap: .5rem; }
  .ics-input-group { flex-wrap: wrap; }
}
