/* Custom styles */

/* ── Navbar ── */
.navbar-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-full {
  position: relative;
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
}

.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  pointer-events: auto;
}

.hero-tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-full .carousel-indicators,
.hero-full .carousel-control-prev,
.hero-full .carousel-control-next,
.hero-full .carousel-caption {
  z-index: 2;
}
.hero-quote {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  max-width: 640px;
  line-height: 1.5;
}

/* ── Footer ── */
#main-footer {
  background-color: #212529;
  color: #d1d5db;
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}
#main-footer h6 {
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
#main-footer a {
  color: #9ca3af;
  text-decoration: none;
}
#main-footer a:hover {
  color: #16a34a;
}
#main-footer li {
  margin-bottom: 0.35rem;
}

/* ── Body layout: fixed navbar, sticky footer ── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
  width: 100%;
}
main:not(:has(.hero-full)) { padding-top: 62px; }

main:has(.hero-full) + #main-footer {
  margin-top: 0;
}

/* ══ GLOBAL: replace Bootstrap blue with green ══ */
a { color: #16a34a; }
a:hover { color: #15803d; }

.btn-primary {
  --bs-btn-bg: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #15803d;
  --bs-btn-hover-border-color: #15803d;
  --bs-btn-active-bg: #14702f;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #16a34a;
  --bs-btn-hover-border-color: #16a34a;
  --bs-btn-hover-color: #fff;
}

/* ══ STATUS BADGES ══ */
.badge-draft {
  background-color: #e5e7eb;
  color: #374151;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-active {
  background-color: #dbeafe;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-published {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ══ TRIP DETAIL: delete button outline only ══ */
.btn-danger {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #dc2626;
  --bs-btn-color: #dc2626;
  --bs-btn-hover-bg: #dc2626;
  --bs-btn-hover-border-color: #dc2626;
  --bs-btn-hover-color: #fff;
}

/* ══ DAY CARDS ══ */
.day-card {
  border: 1px solid #e5e7eb;
  border-left: 3px solid #16a34a;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

/* ══ REORDER BUTTONS ══ */
.btn-reorder {
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  line-height: 1;
  color: #9ca3af;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  cursor: pointer;
}
.btn-reorder:hover {
  color: #16a34a;
  border-color: #16a34a;
}

/* ══ ADD BUTTONS ══ */
.btn-add {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  color: #16a34a;
  border: 1px dashed #16a34a;
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-add:hover {
  background: #f0fdf4;
  color: #15803d;
}

/* ══ SECTION HEADINGS ══ */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ══ TRIP LIST ══ */
.trip-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.trip-list-item:hover {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}
.trip-list-item a {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #0f172a;
}
.trip-list-item a:hover { color: #16a34a; }
.trip-list-item .trip-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

/* ══ REORDER BUTTONS: force border on button elements ══ */
button.btn-reorder {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d1d5db;
  background: transparent;
  color: #9ca3af;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 0.25rem;
  cursor: pointer;
}
button.btn-reorder:hover {
  border-color: #16a34a;
  color: #16a34a;
  background: transparent;
}

/* ══ AUTH PAGES ══ */
.auth-page {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8faf9;
  padding: 2rem 1rem;
}
.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  color: #16a34a;
  margin-bottom: 0.25rem;
}
.auth-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.5rem;
}
.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

/* ══ FORMS ══ */
.form-page {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 2rem 2rem 1.75rem;
}
.form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}
.form-card .form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.3rem;
}
.form-card .btn-outline-secondary {
  --bs-btn-color: #6b7280;
  --bs-btn-border-color: #d1d5db;
  --bs-btn-hover-bg: #f3f4f6;
  --bs-btn-hover-color: #374151;
  --bs-btn-hover-border-color: #d1d5db;
}

/* ══ DAY/PLACE EDIT BUTTONS: quieter outline ══ */
.day-card .btn-outline-secondary,
.place-row .btn-outline-secondary {
  --bs-btn-color: #6b7280;
  --bs-btn-border-color: #d1d5db;
  --bs-btn-hover-color: #16a34a;
  --bs-btn-hover-border-color: #16a34a;
  --bs-btn-hover-bg: transparent;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}

/* ══ PUBLISHED VIEW: place blocks ══ */
.day-card .border.rounded {
  border-color: #e5e7eb !important;
  border-radius: 0.5rem !important;
  background: #fff;
}

/* ══ PUBLISHED VIEW: photo grid ══ */
.day-card .row.g-2 img {
  transition: opacity 0.15s;
}
.day-card .row.g-2 img:hover {
  opacity: 0.88;
}

/* ══ COMMENTS ══ */
.comments-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.25rem;
}
.comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-author {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
}
.comment-time {
  font-size: 0.78rem;
  color: #9ca3af;
}
.comment-body {
  color: #374151;
  margin-top: 0.35rem;
  line-height: 1.6;
}
.comment-reply {
  border-left: 3px solid #e5e7eb;
  padding-left: 1rem;
  margin-top: 0.75rem;
}
.comment-reply:hover {
  border-left-color: #16a34a;
}
.comment-box {
  background: #f8faf9;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.comment-box h6 {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

/* ══ DAY ACTION BUTTONS: hover-reveal on desktop ══ */
.day-actions {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.day-card .card-header:hover .day-actions {
  opacity: 1;
}
@media (max-width: 991.98px) {
  .day-actions {
    opacity: 1;
  }
}

/* ══ PLACE ACTION BUTTONS: hover-reveal on desktop ══ */
.place-actions {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.border.rounded:hover .place-actions {
  opacity: 1;
}
@media (max-width: 991.98px) {
  .place-actions {
    opacity: 1;
  }
}

/* ══ EVENT IDEAS PANEL ══ */
.idea-pool-panel {
  position: sticky;
  top: 78px;
  background: #f8faf9;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.idea-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.85rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}
.idea-card:hover {
  border-color: #16a34a;
}
