/* ==============================================================================
   HEYDE PHARMA BV - Apotheker Yentel Heyde
   Production Master Stylesheet & Design Tokens
   ============================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Brand Groen Tokens (Conform WCAG AA contrastratio's) */
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;

  /* Neutrale Slate Tokens */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
}

/* ------------------------------------------------------------------------------
   1. Harde Weergave-Veiligheid (Schermweergave)
   ------------------------------------------------------------------------------ */
/* Garandeert dat de print-fiche op een beeldscherm ALTIJD 100% verborgen blijft */
.hidden,
#print-sheet {
  display: none !important;
}

/* ------------------------------------------------------------------------------
   2. Basis & Typografische Fundering
   ------------------------------------------------------------------------------ */
html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background-color: var(--brand-600);
  color: #ffffff;
}

/* Toegankelijkheid Focus Rings (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-600) !important;
  outline-offset: 2px !important;
}

/* Skip-to-content knop voor toetsenbordnavigatie */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--slate-900);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* ------------------------------------------------------------------------------
   3. Achtergronden, Decoraties & Icon Badges
   ------------------------------------------------------------------------------ */
.mesh-glow {
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(15, 23, 42, 0.03) 0px, transparent 50%);
}

.icon-badge {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border-radius: 1rem !important;
}

.card-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* Gemeente zoek-tags */
.gemeente-pill {
  transition: all 0.2s ease;
}
.gemeente-pill.is-highlighted {
  background-color: var(--brand-600) !important;
  color: #ffffff !important;
  border-color: var(--brand-700) !important;
  font-weight: 700;
  transform: scale(1.05);
}

/* ------------------------------------------------------------------------------
   4. Privacy-First Google Calendar Facade
   ------------------------------------------------------------------------------ */
.calendar-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.calendar-iframe-container {
  display: none;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #ffffff;
}

.calendar-iframe-container.is-active {
  display: block;
}

/* ------------------------------------------------------------------------------
   5. Zwevende Actieknoppen (Mobiel Symmetrisch)
   ------------------------------------------------------------------------------ */
.floating-actions {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------------------
   6. Wiskundig Sluitende 1-A4 Printengine (Executive Factsheet)
   ------------------------------------------------------------------------------ */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 8mm; /* Wiskundig sluitend: 297mm - 12mm = 285mm printbare hoogte */
  }

  /* Forceer exacte kleurreproductie in Webkit, Blink & Gecko engines */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: var(--slate-900) !important;
    font-size: 8.5pt !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
  }

  /* Verberg alle web-elementen inclusief headers, footers en zwevende knoppen */
  body > *:not(#print-sheet) {
    display: none !important;
  }

  /* Toon uitsluitend de print-fiche bij printen */
  #print-sheet {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-height: 282mm !important;
    box-sizing: border-box !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  /* Geen hyperlinks tonen als URL-tekst bij printen */
  a[href]:after {
    content: none !important;
  }
}
