/* ========================================
  RENDER.CSS - Base styles for all SSR pages
  Light mode by default
   ======================================== */

/* ========================================
   TYPOGRAPHY & BASE
   ======================================== */
body {
  font-family: Raleway, sans-serif !important;
  margin: 0;
  background-color: #f4f4f9;
  color: #333;
}

body p {
  margin-bottom: 0.75rem;
}

a {
  color: #333;
}

a.text-decoration-none {
  color: inherit;
}

.no-underline {
  text-decoration: none !important;
}

.text-burgundy {
  color: #9F1D35 !important;
}

/* ========================================
   LAYOUT
   ======================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #e0e0e0;
  color: #333;
}

footer {
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 999;
  background-color: #f9f9f9;
  color: #333;
}

footer .container {
  justify-content: end;
}

/* ========================================
   NAVBAR & HEADER
   ======================================== */
.navbar h1 {
  margin: 0;
  font-size: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #000;
}

h2.subtitle {
  font-size: 1rem;
  text-align: left;
  padding-top: 4px;
}

.navbar .logo {
  width: 50px;
  height: 50px;
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  outline: none;
  padding: 0;
}

#theme-icon {
  margin-right: 5px;
}

/* ========================================
   NAVIGATION MENUS
   ======================================== */
.footer-menu .nav-item a,
.header-menu .nav-item a {
  text-decoration: underline;
}

.footer-menu a,
.footer-menu p,
.header-menu a,
.header-menu p {
  color: #333;
}

.offcanvas {
  max-width: 85%;
}

.offcanvas .nav-link {
  width: 100%;
  color: var(--bs-secondary-color);
}

.offcanvas a.nav-link:hover {
  color: black;
  font-weight: 600;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.breadcrumb-item {
  flex: 0 0 auto;
  white-space: nowrap;
}

.breadcrumb-item:last-child {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
}

.card-header,
.card-footer {
  background-color: #f8f9fa;
  color: #333;
}

.card-clickable {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card-clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.card-img-zoom {
  transition: transform 0.3s ease;
}

.card-clickable:hover .card-img-zoom {
  transform: scale(1.05);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-outline-secondary {
  border-color: #6c757d;
  color: #333;
}

/* ========================================
   EVENT STYLES
   ======================================== */
.event-type-icon {
  width: 30px;
  height: 30px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 1px solid #333;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-description {
  white-space: pre-line;
}

.event-preview-card {
  transition: box-shadow 0.2s ease;
  background-color: #fff;
  color: #212529;
}

.event-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.event-preview-card .card-title {
  color: #212529;
}

.upcoming-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #9F1D35;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 10;
  transition: background 0.2s ease;
}

.upcoming-ribbon:hover {
  background: #722f37;
  color: white;
}

#follow-host-btn {
  color: #9F1D35;
  border-color: #9F1D35;
}

#follow-host-btn:hover {
  background-color: #9F1D35;
  border-color: #9F1D35;
  color: #fff;
}

#follow-host-btn.following {
  background-color: #9F1D35;
  border-color: #9F1D35;
  color: #fff;
}

.past-event-card {
  opacity: 0.5;
}

/* ========================================
   HOST STYLES
   ======================================== */
.host-description {
  white-space: pre-line;
}

/* Page Header */
.hosts-page-header {
  padding: 0.5rem 0 0;
}

.hosts-page-header h1 {
  color: #333;
  letter-spacing: -0.02em;
}

/* Filter Bar */
.hosts-filter-bar {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hosts-filter-bar .input-group-text {
  border-right: none;
}

.hosts-filter-bar .input-group .form-control {
  border-left: none;
}

.hosts-filter-bar .input-group .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

.hosts-filter-bar .input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(159, 29, 53, 0.15);
  border-radius: 0.375rem;
}

.hosts-filter-bar .input-group:focus-within .input-group-text,
.hosts-filter-bar .input-group:focus-within .form-control {
  border-color: #9F1D35;
}

/* Host Cards */
.host-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.host-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.simple-host-card {
  border: 1px solid #e8e8e8;
}

.simple-host-card:hover {
  border-color: #ccc;
}

.premium-host-card {
  border: 1px solid #d4af37;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.15);
}

.premium-host-card:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
  border-color: #c9a230;
}

.premium-border {
  border: 1px solid #d4af37 !important;
}

.simple-border {
  border: 1px solid #ccc !important;
}

/* Card Body */
.host-card-body {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  gap: 1rem;
}

/* Host Logo */
.host-logo-container {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #eee;
}

.host-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.host-logo-container.no-logo {
  border-radius: 50%;
}

.host-logo-container.no-logo img {
  opacity: 0.4;
}

/* Host Logo (detail page) */
.host-logo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 10%;
  opacity: 0.9;
}

.no-logo .host-logo,
.no-logo img.rounded {
  border-radius: 50% !important;
  opacity: 0.5;
}

/* Card Info */
.host-card-info {
  flex: 1;
  min-width: 0;
}

.host-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #333;
  line-height: 1.3;
}

.host-card-location {
  font-size: 0.85rem;
  color: #777;
  margin: 0 0 0.4rem;
}

.host-card-location i {
  color: #9F1D35;
}

.host-card-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background-color: #f0e6e9;
  color: #9F1D35;
  font-weight: 500;
  line-height: 1.4;
}

.host-card-stats {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.host-card-stats .badge {
  font-size: 0.73rem;
  font-weight: 500;
}

/* Premium Ribbon */
.premium-ribbon {
  position: absolute;
  top: 10px;
  left: -10px;
  background: #d4af37;
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  transform: rotate(-45deg);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.premium-ribbon-horizontal {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #d4af37, #c49b2a);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 0 12px 0 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #d4af37;
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* No Results */
.hosts-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.hosts-no-results i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  color: #ccc;
}

.hosts-no-results p {
  font-size: 1rem;
  margin: 0;
}

/* ========================================
   BLOG STYLES
   ======================================== */
.blog-pinned {
  border-left: 4px solid #9F1D35 !important;
}

.badge-pinned {
  background-color: #9F1D35;
}

.list-count {
  text-align: center;
  min-width: 40px;
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
}

.cover-image-responsive {
  overflow: hidden;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  aspect-ratio: 1600 / 500;
}

.object-fit-cover {
  object-fit: cover;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.clickable {
  cursor: pointer !important;
}

.text-underlined {
  text-decoration: underline;
}

.pre-wrap {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
#backToTopBtn {
  position: fixed;
  bottom: 55px;
  right: 10px;
  width: 44px;
  height: 44px;
  opacity: 0;
  transform: translateY(20px);
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: whitesmoke;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  display: flex;
}

#backToTopBtn.show {
  opacity: 0.8;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTopBtn.show:hover {
  opacity: 1;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 768px) {
  .navbar .logo {
    width: 40px;
    height: 40px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  footer .container {
    justify-content: center;
  }

  .navbar .subtitle {
    display: none;
  }

  body .navbar h1 {
    border-bottom: none !important;
  }

  .page-content {
    padding: 0 15px;
  }

  h2.h5 {
    font-size: 1rem !important;
  }

  .host-card-body {
    padding: 1rem;
  }

  .host-logo-container {
    width: 64px;
    height: 64px;
  }
}

/* ========================================
   EDUCATOR CARDS
   ======================================== */
.educator-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #dee2e6;
  display: block;
}

.educator-sidebar {
  border-bottom: 1px solid #dee2e6;
}

@media (min-width: 768px) {
  .educator-avatar-img {
    width: 110px;
    height: 110px;
  }

  .educator-sidebar {
    border-bottom: none;
    border-right: 1px solid #dee2e6;
  }
}

/* ========================================
   SHARE BUTTON
   ======================================== */
.share-btn-subtle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .navbar {
    padding: 0;
  }

  .navbar .navbar-brand {
    margin-right: 0;
  }

  .event-content {
    padding: 0;
  }
}

/* ========================================
   ALERT CONTAINER (toast-style notifications)
   ======================================== */

#alert-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  transform: none;
  z-index: 9999;
  pointer-events: none;
}

#alert-container .alert {
  border-radius: 0;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#alert-container .alert.showing {
  transform: translateY(0);
  opacity: 1;
}

#alert-container .alert.hiding {
  transform: translateY(-100%);
  opacity: 0;
}

/* AGE GATE */
#age-gate {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.age-gate-box {
  background-color: var(--card-bg, #fff);
  color: var(--text-color, #333);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.age-gate-box h2 {
  margin-bottom: 1rem;
}

.age-gate-box p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.age-gate-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 1.25rem;
}

.age-gate-buttons .btn-primary {
  background-color: #9F1D35;
  border-color: #9F1D35;
  color: #fff;
}

.age-gate-buttons .btn-primary:hover {
  background-color: #722f37;
  border-color: #722f37;
}

.age-gate-footer {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted, #888);
}

.age-gate-footer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 45px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
}

#cookie-banner p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  display: inline-block;
}

#cookie-banner a {
  color: var(--primary-color);
  text-decoration: underline;
}

#cookie-banner button {
  margin-left: 10px;
  background-color: var(--primary-color);
  border: none;
  padding: 5px 10px;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

/* MONTHLY PICKS CARDS */
.monthly-pick-card {
  border-left: 4px solid #9F1D35 !important;
  transition: transform 0.3s, box-shadow 0.3s;
}

.monthly-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.monthly-pick-img-wrapper {
  display: block;
  overflow: hidden;
  border-radius: 0.375rem 0.375rem 0 0;
}

.monthly-pick-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 838;
  object-fit: cover;
  transition: transform 0.3s;
}

.monthly-pick-img-placeholder {
  width: 100%;
  aspect-ratio: 1600 / 838;
  background: linear-gradient(135deg, #f8f0f2, #f4f4f9);
}

.monthly-pick-date {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}

.monthly-pick-day {
  font-size: 1.8rem;
  font-weight: 700;
  color: #9F1D35 !important;
}

.monthly-pick-month-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9F1D35 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.monthly-pick-title {
  color: #333;
}

.monthly-pick-title:hover {
  color: #9F1D35;
}