/*
Theme Name: Westfriese Uitagenda
Theme URI: https://westfrieseuitagenda.nl
Author: Nota Bene BV
Author URI: https://notabene.nl
Description: Officieel thema voor Westfriese Uitagenda. Gebouwd op Bootstrap 5.3 met evenementenkoppeling.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: westfrieseuitagenda
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --wua-primary:        #e05746;
  --wua-primary-dark:   #c44535;
  --wua-primary-light:  #f06a59;
  --wua-dark:           #212529;
  --wua-gray-dark:      #343a40;
  --wua-gray:           #868e96;
  --wua-light:          #f8f9fa;
  --wua-facebook:       #1877F2;
  --wua-x:              #000000;
  --wua-instagram:      #E1306C;
  --wua-font-body:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wua-font-slogan:    'Courgette', cursive;
  --wua-header-height:  320px;
  --wua-header-height-mobile: 200px;
}

/* ============================================================
   GLOBAL
   ============================================================ */
body {
  font-family: var(--wua-font-body);
  color: #212529;
  background: #fff;
}

a {
  color: var(--wua-primary);
}

a:hover {
  color: var(--wua-primary-dark);
}

/* ============================================================
   BOOTSTRAP 5 OVERRIDES — Brand Colors
   ============================================================ */
.btn-primary,
.bg-primary {
  background-color: var(--wua-primary) !important;
  border-color: var(--wua-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--wua-primary-dark) !important;
  border-color: var(--wua-primary-dark) !important;
}

.text-primary { color: var(--wua-primary) !important; }
.border-primary { border-color: var(--wua-primary) !important; }

.btn-facebook {
  background-color: var(--wua-facebook);
  border-color: var(--wua-facebook);
  color: #fff;
}
.btn-facebook:hover {
  background-color: #0d63d0;
  border-color: #0d63d0;
  color: #fff;
}

/* X (voorheen Twitter) — zwart conform huidige X-branding */
.btn-x {
  background-color: var(--wua-x);
  border-color: var(--wua-x);
  color: #fff;
}
.btn-x:hover {
  background-color: #333;
  border-color: #333;
  color: #fff;
}

/* Instagram — roze/paars zoals het merk */
.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border-color: #dc2743;
  color: #fff;
}
.btn-instagram:hover {
  background: linear-gradient(45deg, #d4831d, #cb5830 25%, #c11e38 50%, #b11a58 75%, #a21275);
  border-color: #c11e38;
  color: #fff;
}

/* ============================================================
   SITE HEADER / HERO
   ============================================================ */
.site-header {
  position: relative;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: var(--wua-header-height);
  border-bottom: 5px solid #fff;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.05) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Mountain SVG overlay at bottom of header */
.mountain-overlay {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: url('assets/img/mountain.svg') no-repeat center top / cover;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-navbar {
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
}

.site-navbar .brand-logo img.logo {
  width: 280px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Social + CTA: absolute rechtsbovenin de header */
.header-topbar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-topbar .btn-social {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* CTA aanmeldknop — rechthoekig, zelfde rood */
.header-topbar .btn-cta {
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  line-height: 1.4;
  white-space: nowrap;
  background-color: var(--wua-primary);
  border-color: var(--wua-primary);
  color: #fff;
}
.header-topbar .btn-cta:hover {
  background-color: var(--wua-primary-dark);
  border-color: var(--wua-primary-dark);
  color: #fff;
}

/* ============================================================
   SLOGAN
   ============================================================ */
.site-slogan {
  font-family: var(--wua-font-slogan);
  font-size: 2.4rem;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  text-align: right;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  padding: 0.5rem 1rem 0 0;
  position: relative;
  z-index: 2;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.site-filter {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.site-filter .form-select,
.site-filter .form-control {
  border-color: #dee2e6;
  font-size: 0.9rem;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
  min-height: 60vh;
}

/* ============================================================
   EVENT CARDS (overzichtspagina)
   ============================================================ */
.event-card {
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.event-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  color: var(--wua-dark);
}

.event-card .card-meta {
  font-size: 0.82rem;
  color: #6c757d;
  line-height: 1.6;
}

.event-card .card-meta i {
  width: 16px;
  color: var(--wua-primary);
}

.event-card .card-text-excerpt {
  font-size: 0.88rem;
  color: #495057;
}

.event-card .btn-read-more {
  color: var(--wua-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.event-card .btn-read-more:hover {
  text-decoration: underline;
}

/* ============================================================
   EVENT DETAIL (single evenement)
   ============================================================ */
.event-detail-image {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  cursor: zoom-in;
}

.event-info-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.event-info-box h5 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wua-gray);
  margin-bottom: 0.75rem;
}

.event-info-box .info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-info-box .info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #e9ecef;
}

.event-info-box .info-list li:last-child {
  border-bottom: 0;
}

.event-info-box .info-list li i {
  color: var(--wua-primary);
  width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.event-info-divider {
  height: 1px;
  background: #dee2e6;
  margin: 0.75rem 0;
}

.event-detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#event-map {
  width: 100%;
  height: 240px;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR CALENDAR LIST (widget)
   ============================================================ */
.calendar-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  text-decoration: none;
  color: var(--wua-dark);
}

.calendar-list-item:hover {
  color: var(--wua-primary);
}

.calendar-list-item .cal-date {
  min-width: 56px;
  text-align: center;
  background: var(--wua-primary);
  color: #fff;
  border-radius: 0.35rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.calendar-list-item .cal-date .day {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.calendar-list-item .cal-title {
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.wua-pagination {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.wua-pagination .page-item .page-link {
  color: var(--wua-primary);
  border-color: #dee2e6;
  min-width: 38px;
  text-align: center;
  padding: 0.375rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 4px !important;
  margin: 0 1px;
}

.wua-pagination .page-item.active .page-link {
  background-color: var(--wua-primary);
  border-color: var(--wua-primary);
  color: #fff;
}

.wua-pagination .page-item.active .page-link:hover,
.wua-pagination .page-item.active .page-link:focus {
  background-color: var(--wua-primary-dark);
  border-color: var(--wua-primary-dark);
}

.wua-pagination .page-link:hover {
  color: var(--wua-primary-dark);
  background-color: #fff0ee;
}

.wua-pagination .page-item.disabled .page-link {
  color: #adb5bd;
  pointer-events: none;
}

/* ============================================================
   BREADCRUMBS (Yoast)
   ============================================================ */
.wua-breadcrumb {
  font-size: 0.82rem;
  color: #868e96;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.wua-breadcrumb a {
  color: var(--wua-primary);
  text-decoration: none;
}

.wua-breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER WIDGETS
   ============================================================ */
.footer-widgets {
  background: var(--wua-dark);
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-widgets h4,
.footer-widgets h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-widgets .footer-divider {
  border-color: rgba(255,255,255,0.15);
  margin-bottom: 1.25rem;
}

.footer-widgets .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widgets .footer-menu li {
  padding: 0.2rem 0;
}

.footer-widgets .footer-menu a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-widgets .footer-menu a:hover {
  color: #fff;
}

.footer-widgets .widget p,
.footer-widgets .widget ul,
.footer-widgets .widget li {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-widgets .widget a {
  color: rgba(255,255,255,0.75);
}

.footer-widgets .widget a:hover {
  color: var(--wua-primary-light);
}

/* ============================================================
   FOOTER BAR
   ============================================================ */
.site-footer-bar {
  background: var(--wua-primary);
  color: #fff;
  text-align: center;
  padding: 0.6rem 0;
  font-size: 0.82rem;
}

.site-footer-bar p {
  margin: 0;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  background: var(--wua-primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 9999;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--wua-primary-dark);
  color: #fff;
}

/* ============================================================
   WP CONTENT PAGES
   ============================================================ */
.wp-content-page {
  max-width: 860px;
}

.wp-content-page h2,
.wp-content-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.wp-content-page img {
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

/* WP alignment classes */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; text-align: center; }

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results-box {
  text-align: center;
  padding: 3rem 1rem;
  color: #868e96;
}

.no-results-box i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #dee2e6;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 991.98px) {
  :root {
    --wua-header-height: var(--wua-header-height-mobile);
  }

  .site-navbar .brand-logo img.logo {
    width: 160px;
  }

  .site-slogan {
    font-size: 1.6rem;
    margin-right: 0;
  }

  .mountain-overlay {
    height: 48px;
  }

  .event-card .card-img-top {
    height: 160px;
  }

  /* Kleinere topbar op mobiel: verberg CTA tekst */
  .header-topbar .btn-cta .btn-cta-label {
    display: none;
  }

  .header-topbar .btn-cta {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.82rem;
  }
}

@media (min-width: 992px) {
  .header-topbar .btn-cta .btn-cta-icon {
    display: none;
  }
}
