/* Sara's Zorgplanner — style.css v2.0.0 */
/* Gate, Registration, Visitor Calendar, Guide */

:root {
  --bg: #F7F4F0;
  --card: #FFFFFF;
  --primary: #6B8E7B;
  --primary-light: #EDF4F0;
  --primary-dark: #4A6B5A;
  --accent: #C4956A;
  --accent-light: #FBF3EB;
  --text: #2A2F2C;
  --text-secondary: #6B7770;
  --text-muted: #9BA69E;
  --border: #E6E2DD;
  --danger: #C47A7A;
  --danger-light: #FBF0F0;
  --warning: #D4A843;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'DM Serif Display', serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* === SHARED === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #d9d5d0; }
.btn-text { background: none; color: var(--primary); padding: 6px 12px; }
.btn-text:hover { background: var(--primary-light); }
.btn-large { padding: 14px 24px; font-size: 1rem; width: 100%; }
.link { color: var(--primary); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.error-text { color: var(--danger); font-size: 0.85rem; margin-top: 8px; }
.success-text { color: var(--primary); font-size: 0.85rem; margin-top: 8px; }

.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin: 12px 0 6px; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 1rem; color: var(--text); background: var(--card); transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107,142,123,0.15); }

.form-radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.form-radio { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.form-radio input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--card); border-radius: var(--radius-lg);
  max-width: 440px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto;
  z-index: 201; box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 400; }
.modal-close { border: none; background: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 16px 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }

/* === GATE SCREEN === */
.gate-screen { min-height: 100vh; }
.gate-screen { background: #111; }
.gate-container { max-width: 900px; margin: 0 auto; padding: 32px 20px 60px; }

.gate-hero { text-align: center; margin-bottom: 32px; padding-top: 32px; }
.gate-hero--dark {
  background: #111; padding: 0 20px 32px; margin: -32px -20px 32px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.gate-hero--dark .gate-title { color: #F4F4F0; }
.gate-hero--dark .gate-subtitle { color: #9BA69E; }
.gate-hero-img {
  width: 100%; max-width: 800px; border-radius: var(--radius);
  margin-bottom: 24px; margin-top: 32px;
}
.gate-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 400; margin-bottom: 12px; line-height: 1.2; }
.gate-subtitle { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; max-width: 600px; margin: 0 auto; }

/* Story section */
.gate-story {
  text-align: center; margin-bottom: 36px; padding: 28px 24px;
  max-width: 700px; margin-left: auto; margin-right: auto;
  background: #1a1a1a; border-radius: var(--radius); color: #ccc;
}
.gate-story p {
  font-size: 0.9rem; color: #aaa; line-height: 1.7; margin-bottom: 12px;
}
.gate-story-stats {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid #333;
}
.gate-story-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.gate-story-stat strong {
  font-family: var(--font-heading); font-size: 1.6rem; color: #C47A7A;
}
.gate-story-stat span { font-size: 0.75rem; color: #777; }

.gate-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }

.form-check-group { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

.gate-card {
  background: #1a1a1a; border-radius: var(--radius); padding: 24px 20px;
  text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); cursor: pointer;
  transition: var(--transition); border: 2px solid #2a2a2a;
}
.gate-card:hover { border-color: #C47A7A; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.gate-card h3 { color: #F4F4F0; }
.gate-card p { color: #999; }

.gate-card-icon { font-size: 2rem; margin-bottom: 12px; }
.gate-card-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  object-fit: cover; margin-bottom: 12px;
}
.gate-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 400; margin-bottom: 8px; }
.gate-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.gate-card-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  color: #C4956A; background: rgba(196,149,106,0.15);
  padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.03em;
}

.gate-login-section { text-align: center; margin-bottom: 48px; }
.gate-login-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.gate-login-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gate-login-inline { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.gate-login-inline .form-input { flex: 1; }
.gate-login-inline .btn { white-space: nowrap; }
@media (max-width: 480px) { .gate-login-inline { flex-direction: column; } }

/* Prominent login box */
.gate-login-prominent {
  background: #1a1a1a; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); border: 2px solid #2a2a2a; margin-bottom: 40px;
}
.gate-login-heading {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 400;
  margin-bottom: 6px; color: #F4F4F0;
}
.gate-login-prominent .gate-login-text { color: #999; }
.gate-login-prominent .form-input {
  background: #222; border-color: #333; color: #F4F4F0;
}
.gate-login-prominent .form-input::placeholder { color: #666; }
.gate-login-prominent .text-muted { color: #666; }
.gate-login-prominent .link { color: #C47A7A; }

/* Section divider */
.gate-section-divider {
  text-align: center; margin-bottom: 28px; position: relative;
}
.gate-section-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid #2a2a2a;
}
.gate-section-divider span {
  position: relative; background: #111; padding: 0 16px;
  font-size: 0.9rem; font-weight: 600; color: #777;
}

/* Featured card (Forever Home) */
.gate-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  border: 2px solid #C47A7A;
}
.gate-card--featured:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); border-color: #e08888; }
.gate-card-tag--new {
  background: #C47A7A; color: #fff;
}

/* === GUIDE === */
.gate-guide { margin-top: 48px; }
.guide-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 400; text-align: center; margin-bottom: 32px; color: #F4F4F0; }
.guide-subtitle { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 400; margin: 40px 0 16px; color: #F4F4F0; }

.guide-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.guide-step { display: flex; gap: 16px; align-items: flex-start; }
.guide-step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.95rem;
}
.guide-step-content h4 { font-size: 0.95rem; margin-bottom: 4px; color: #F4F4F0; }
.guide-step-content p { font-size: 0.85rem; color: #999; line-height: 1.5; }

.guide-screenshot { margin-bottom: 24px; }
.screenshot-frame {
  background: #1a1a2e; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid #333;
}
.screenshot-frame.small { max-width: 500px; }
.screenshot-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #252540; border-bottom: 1px solid #333;
}
.screenshot-dot { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.screenshot-dot:first-child { background: #ff5f57; }
.screenshot-dot:nth-child(2) { background: #ffbd2e; }
.screenshot-dot:nth-child(3) { background: #28ca42; }
.screenshot-url { margin-left: 12px; font-size: 0.72rem; color: #888; font-family: monospace; }

.screenshot-content { padding: 12px; }
.screenshot-header-bar {
  text-align: center; padding: 8px; font-weight: 600;
  font-size: 0.8rem; color: #fff; background: var(--primary);
  border-radius: 6px; margin-bottom: 8px;
}
.screenshot-week-nav { text-align: center; font-size: 0.75rem; color: #ccc; margin-bottom: 8px; }

.screenshot-grid { display: grid; grid-template-columns: 80px repeat(5, 1fr); gap: 2px; }
.sg-hdr {
  background: var(--primary); color: #fff; text-align: center;
  padding: 5px 3px; font-size: 0.65rem; font-weight: 600; border-radius: 3px;
}
.sg-label { padding: 4px 6px; font-size: 0.6rem; color: #aaa; display: flex; flex-direction: column; justify-content: center; }
.sg-label span { font-size: 0.5rem; color: #666; }
.sg-cell { padding: 5px 3px; text-align: center; border-radius: 3px; font-size: 0.58rem; font-weight: 600; }
.sg-default { background: #3a2f20; color: #c4956a; border: 1px dashed #6a5030; }
.sg-claimed { background: color-mix(in srgb, var(--hc) 15%, #1a1a2e); border: 1px solid var(--hc); color: var(--hc); }
.sg-gap { background: #3a2020; color: #c47a7a; border: 1px dashed #8a4a4a; }
.sg-apt { background: #1a2a20; color: #6b8e7b; border: 1px solid #4a6b5a; }
.sg-visit { background: #1a2a25; color: #6b8e7b; border: 1px solid #3a5a4a; }
.sg-booked { background: #2a2518; color: #c4956a; border: 1px solid #8a6a4a; }
.sg-blocked { background: #222; color: #666; border: 1px solid #333; text-decoration: line-through; }

.screenshot-caption { margin-top: 12px; font-size: 0.82rem; color: #777; line-height: 1.5; }

.screenshot-visits { padding: 4px; }
.sv-day { margin-bottom: 6px; }
.sv-date { font-size: 0.65rem; font-weight: 600; color: #ccc; margin-bottom: 3px; }
.sv-slot { padding: 4px 8px; border-radius: 4px; font-size: 0.6rem; margin-bottom: 2px; }
.sv-open { background: #1a2a25; color: #6b8e7b; }
.sv-partial { background: #2a2518; color: #c4956a; }
.sv-closed { background: #2a1a1a; color: #c47a7a; text-decoration: line-through; }

.guide-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.guide-info-card {
  background: #1a1a1a; border-radius: var(--radius-sm); padding: 16px;
  border: 1px solid #2a2a2a;
}
.guide-info-card h4 { font-size: 0.9rem; margin-bottom: 6px; color: #F4F4F0; }
.guide-info-card p { font-size: 0.82rem; color: #999; line-height: 1.5; }

.guide-footer { text-align: center; margin-top: 48px; color: #666; font-size: 0.85rem; }
.guide-footer .link { color: #C47A7A; }

/* === REGISTRATION === */
.register-container { max-width: 500px; margin: 0 auto; padding: 24px 20px; }
.register-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-lg);
}
.register-card h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 400; }

/* === VISITOR CALENDAR === */
.visitor-container { max-width: 700px; margin: 0 auto; padding: 24px 20px; }
.visitor-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.visitor-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 400; }

.visitor-day {
  background: var(--card); border-radius: var(--radius-sm);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.visitor-day-header {
  padding: 10px 16px; background: var(--primary-light);
  font-weight: 600; font-size: 0.88rem; border-bottom: 1px solid var(--border);
}
.visitor-slot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.visitor-slot:last-child { border-bottom: none; }
.visitor-slot-time { font-weight: 500; }
.visitor-slot-status { font-size: 0.82rem; }
.visitor-slot-status.available { color: var(--primary); }
.visitor-slot-status.full { color: var(--danger); }
.visitor-slot-status.blocked { color: var(--text-muted); text-decoration: line-through; }
.visitor-slot .btn { flex-shrink: 0; }
.visitor-note { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-top: 24px; }

/* === WEEK NAV (visitor calendar) === */
.week-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 16px; padding: 8px 0;
}
.week-nav-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 1rem; cursor: pointer; color: var(--text);
  min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.week-nav-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.week-nav-label { font-weight: 600; font-size: 0.95rem; min-width: 180px; text-align: center; }

/* === MY BOOKINGS === */
.my-bookings-section { margin-bottom: 24px; }
.my-bookings-title {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 400;
  margin-bottom: 12px;
}
.my-booking-card {
  background: var(--card); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-left: 4px solid var(--border);
}
.my-booking-card.status-pending { border-left-color: var(--warning); }
.my-booking-card.status-approved { border-left-color: var(--primary); }
.my-booking-card.status-rejected { border-left-color: var(--danger); }

.my-booking-info { flex: 1; min-width: 0; }
.my-booking-date { font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.my-booking-time { font-size: 0.82rem; color: var(--text-secondary); }
.my-booking-guests { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }

.my-booking-status {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.03em;
  white-space: nowrap;
}
.my-booking-status.pending { background: #FFF8E1; color: #8B7A2B; }
.my-booking-status.approved { background: var(--primary-light); color: var(--primary-dark); }
.my-booking-status.rejected { background: var(--danger-light); color: var(--danger); }

.my-booking-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-cancel {
  background: none; border: 1px solid var(--danger); color: var(--danger);
  padding: 5px 12px; border-radius: var(--radius-sm); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.btn-cancel:hover { background: var(--danger-light); }

.my-bookings-empty {
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
  padding: 16px; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

/* === BOOKING CONFIRMATION === */
.booking-confirmation { text-align: center; padding: 12px 0; }
.booking-confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; margin: 0 auto 16px;
}
.booking-confirm-title {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 400;
  margin-bottom: 16px; color: var(--primary-dark);
}
.booking-confirm-detail { font-size: 0.9rem; margin-bottom: 4px; color: var(--text); }
.booking-confirm-note {
  font-size: 0.82rem; color: var(--text-secondary); margin-top: 16px;
  padding: 10px 16px; background: var(--primary-light); border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* === VISITOR CONTACT === */
.visitor-contact {
  text-align: center; margin-top: 32px; padding: 20px;
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.visitor-contact p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 10px; }
.visitor-contact-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.visitor-contact-links a {
  color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.88rem;
}
.visitor-contact-links a:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .gate-cards { grid-template-columns: 1fr; }
  .guide-info-cards { grid-template-columns: 1fr; }
  .gate-title { font-size: 1.7rem; }
  .gate-login-buttons { flex-direction: column; align-items: center; }
  .gate-login-buttons .btn { width: 100%; max-width: 300px; }
  .screenshot-grid { grid-template-columns: 60px repeat(5, 1fr); }
  .sg-cell { font-size: 0.5rem; padding: 3px 2px; }
  .week-nav-label { font-size: 0.85rem; min-width: 160px; }
}

@media (max-width: 480px) {
  .gate-container { padding: 20px 12px 40px; }
  .gate-hero { padding-top: 20px; }
  .gate-title { font-size: 1.5rem; }
  .guide-title { font-size: 1.3rem; }
  .gate-card { padding: 20px 16px; }
  .screenshot-grid { grid-template-columns: 50px repeat(5, 1fr); }
  .my-booking-card { flex-direction: column; align-items: flex-start; }
  .my-booking-actions { width: 100%; justify-content: space-between; }
  .week-nav-btn { min-width: 44px; min-height: 44px; }
}
