/* ──────────────────────────────────────────────────────────────────────────
   AWOOGA WEBPORTAL — BUBBLEGUM TECH REDESIGN
   ──────────────────────────────────────────────────────────────────────────

   This file layers on top of dock-map.css and the original boat-portal styles.
   No HTML is modified. All functionality remains intact.

   TO REVERT: Comment out or remove the stylesheet link in boat-portal.php

   Design Direction: Soft pastels + bright accents, rounded everything, modern+cute hybrid
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Soft pastel palette */
  --bg-soft: #f8f6ff;
  --bg-dark: #0f0d1a;
  --accent-pink: #ff6b9d;
  --accent-blue: #4ecdc4;
  --accent-yellow: #ffd166;
  --accent-purple: #b19cd9;
  --accent-mint: #a8e6cf;
  --text-dark: #2d1b4e;
  --text-muted: #7c6ba1;
  --border-soft: rgba(45, 27, 78, 0.12);
}

/* ──────────── Main Portal Background ──────────── */
.boat-portal-wrap {
  /* Navy to match the site header / other public pages (the area around the
     rounded .bp-layout portal frame) */
  background: #0c2034 !important;
  color: var(--text-dark) !important;
  font-family: 'Poppins', 'DM Sans', sans-serif !important;
}

/* ──────────── Loading Screen ──────────── */
.bp-load-overlay {
  background: linear-gradient(135deg, #fff5f9 0%, #f0f4ff 100%) !important;
}

.bp-load-label {
  color: var(--text-dark) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
}

/* ──────────── Modal Styling ──────────── */
.bp-chat-window,
.bp-personality-window,
.bp-tour-window,
.bp-vmap-window,
.bp-tugcast-window,
.tugoscope-panel,
.bp-fm-swag-card,
.bp-fm-popup-card,
.bp-stump-popup-card {
  border-radius: 28px !important;
  box-shadow: 0 24px 48px rgba(45, 27, 78, 0.16),
              0 8px 16px rgba(45, 27, 78, 0.08) !important;
  background: #fff !important;
}

/* Modal Headers */
.bp-chat-window-header {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%) !important;
  border-radius: 28px 28px 0 0 !important;
}

.bp-chat-window-title,
.tugoscope-title-wrap {
  color: white !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
}

.bp-chat-window-sub {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
}

/* ──────────── Chat Bubbles ──────────── */
.bp-chat-bubble {
  border-radius: 20px !important;
  padding: 16px !important;
  margin: 12px 0 !important;
}

.bp-chat-bubble.awooga {
  background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-blue) 100%) !important;
  color: white !important;
}

.bp-chat-bubble.user {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #ff8fab 100%) !important;
  color: white !important;
  margin-left: auto !important;
  max-width: 85% !important;
}

.bp-chat-sender {
  font-weight: 700 !important;
  font-family: 'Poppins', sans-serif !important;
  margin-bottom: 6px !important;
  opacity: 0.95 !important;
}

/* ──────────── Input Fields ──────────── */
.bp-chat-input,
.bp-fm-swag-input,
#bp-vmap-from-<?php ?>,
#bp-vmap-to-<?php ?>,
textarea {
  border-radius: 16px !important;
  border: 2px solid var(--border-soft) !important;
  padding: 12px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
}

.bp-chat-input:focus,
.bp-fm-swag-input:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.12) !important;
}

/* ──────────── Buttons ──────────── */
.bp-chat-send,
.bp-fm-swag-btn,
.bp-pm-card,
button[type="submit"],
button[type="button"],
.bp-vmap-preset,
.bp-tc-tog,
.bp-tugcast-action-btn,
.tugoscope-active {
  border-radius: 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  border: none !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer !important;
}

.bp-chat-send {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #2db8b8 100%) !important;
  color: white !important;
  padding: 10px 20px !important;
}

.bp-chat-send:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(78, 205, 196, 0.3) !important;
}

.bp-fm-swag-btn {
  padding: 12px 20px !important;
  background: white !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--border-soft) !important;
}

.bp-fm-swag-btn-submit {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #ff8fab 100%) !important;
  color: white !important;
  border: none !important;
}

.bp-fm-swag-btn:hover {
  transform: translateY(-2px) !important;
}

.bp-pm-card {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(179, 157, 219, 0.1) 100%) !important;
  border: 2px solid var(--border-soft) !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.bp-pm-card:hover {
  border-color: var(--accent-pink) !important;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(179, 157, 219, 0.08) 100%) !important;
}

.bp-pm-card-name {
  font-weight: 700 !important;
  color: var(--text-dark) !important;
}

.bp-pm-card-desc {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

/* ──────────── Cards & Sections ──────────── */
.bp-tc-metric,
.bp-vmap-preset,
.bp-tc-tog {
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #faf8fe 100%) !important;
  border: 2px solid var(--border-soft) !important;
  padding: 14px 16px !important;
  color: var(--text-dark) !important;
}

.bp-tc-metric-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--text-muted) !important;
}

.bp-tc-metric-val {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--accent-pink) !important;
  margin-top: 6px !important;
}

/* Active state */
.bp-vmap-preset.active,
.bp-tc-tog-active {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%) !important;
  color: white !important;
  border-color: transparent !important;
}

/* ──────────── First Mate Styling ──────────── */
.bp-fm-popup-card {
  background: linear-gradient(135deg, #fff5f9 0%, #f0f4ff 100%) !important;
  padding: 32px !important;
  text-align: center !important;
  border-radius: 28px !important;
}

.bp-fm-popup-title {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.8rem !important;
  color: var(--accent-pink) !important;
  margin: 12px 0 8px !important;
}

.bp-fm-popup-sub {
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
}

.bp-stump-popup-card {
  background: linear-gradient(135deg, #fffaf0 0%, #fff5f9 100%) !important;
  padding: 32px !important;
  text-align: center !important;
  border-radius: 28px !important;
}

.bp-stump-popup-title {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.8rem !important;
  color: var(--accent-yellow) !important;
  margin: 12px 0 8px !important;
}

/* ──────────── Form Labels & Status ──────────── */
.bp-fm-swag-title {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  color: var(--text-dark) !important;
  margin-bottom: 8px !important;
}

.bp-fm-swag-sub {
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.bp-fm-swag-status {
  color: var(--accent-pink) !important;
  font-weight: 600 !important;
}

/* ──────────── Text Colors & Emphasis ──────────── */
strong {
  font-weight: 700 !important;
  color: var(--accent-pink) !important;
}

em {
  font-style: italic !important;
  color: var(--accent-blue) !important;
}

/* ──────────── Modal Backgrounds ──────────── */
#bp-chat-modal,
#bp-personality-modal,
#bp-tour-modal,
#bp-vmap-modal,
#bp-tugcast-modal,
#tugoscopeModal {
  background: rgba(15, 13, 26, 0.5) !important;
  backdrop-filter: blur(8px) !important;
}

/* ──────────── Close Button Styling ──────────── */
.bp-chat-close-btn,
.bp-modal-info-btn,
.tugoscope-close {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: white !important;
  font-size: 1.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.bp-chat-close-btn:hover,
.bp-modal-info-btn:hover,
.tugoscope-close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  transform: rotate(90deg) !important;
}

/* ──────────── Personality Mode ──────────── */
.bp-pm-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
}

.bp-pm-random,
.bp-pm-default {
  border-radius: 16px !important;
  padding: 12px 24px !important;
  background: white !important;
  border: 2px solid var(--border-soft) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.bp-pm-random:hover,
.bp-pm-default:hover {
  border-color: var(--accent-pink) !important;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(179, 157, 219, 0.05) 100%) !important;
}

/* ──────────── Tugcast / Weather ──────────── */
.bp-tc-body {
  background: var(--bg-soft) !important;
  color: var(--text-dark) !important;
}

.bp-tc-section-bar {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: var(--accent-pink) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 16px 0 12px !important;
}

.bp-tc-temp-big {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  font-size: 2.8rem !important;
  color: var(--accent-blue) !important;
}

.bp-tc-summary-box {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%) !important;
  border: 2px solid rgba(78, 205, 196, 0.2) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  color: var(--text-dark) !important;
  font-size: 0.95rem !important;
}

.bp-tc-goout-section {
  background: linear-gradient(135deg, #fffaf0 0%, #fff5f9 100%) !important;
  border: 2px solid var(--border-soft) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-top: 16px !important;
}

.bp-tc-disclaimer {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  margin-top: 8px !important;
}

/* ──────────── Tug-O-Scope ──────────── */
.tugoscope-header {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-mint) 100%) !important;
  color: white !important;
  border-radius: 28px 28px 0 0 !important;
  padding: 24px !important;
}

.tugoscope-title-wrap h2 {
  color: white !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
}

.tugoscope-tagline,
.tugoscope-fineprint {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9rem !important;
}

.tugoscope-section-title {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin: 16px 0 12px !important;
}

.tugoscope-status-pill {
  background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-blue) 100%) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

/* ──────────── Info Modal Button ──────────── */
.bp-modal-info-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: none !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.bp-modal-info-btn em {
  color: white !important;
  font-style: normal !important;
}

/* ──────────── Accessibility: Focus States ──────────── */
*:focus-visible {
  outline: 2px solid var(--accent-pink) !important;
  outline-offset: 2px !important;
}

/* ──────────── Animations ──────────── */
@keyframes bp-gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes bp-soft-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 157, 0); }
}

.bp-chat-send:active {
  animation: bp-gentle-bounce 0.3s ease;
}

.bp-fm-swag-btn-submit:hover {
  animation: bp-soft-glow 1s ease-in-out infinite;
}

/* ──────────── Responsive Tweaks ──────────── */
@media (max-width: 640px) {
  .bp-chat-window,
  .bp-personality-window,
  .bp-fm-swag-card {
    max-width: 100% !important;
    border-radius: 20px !important;
  }

  .bp-pm-grid {
    grid-template-columns: 1fr !important;
  }

  .bp-chat-input,
  .bp-fm-swag-input {
    font-size: 16px !important;
  }
}

/* ──────────── Print & Fallback ──────────── */
@media print {
  .bp-chat-window,
  .bp-personality-window,
  .bp-fm-swag-card {
    box-shadow: none !important;
  }
}

/* ──────────── Ship's Manifest + Back to Top ──────────── */
.bp-card {
  scroll-margin-top: 86px;
}

.bp-manifest-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99980;
  font-family: 'Poppins', sans-serif;
}

.bp-manifest-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff9ecf, #b388ff);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(108, 71, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-manifest-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(108, 71, 255, 0.45);
}

.bp-top-btn {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #7c3aed;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(30, 41, 59, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bp-top-btn.bp-top-btn-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bp-manifest-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(290px, calc(100vw - 36px));
  max-height: min(430px, 65vh);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(30, 41, 59, 0.28);
  padding: 10px;
}

.bp-manifest-head {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
  padding: 6px 10px 8px;
}

.bp-manifest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #1e293b;
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.bp-manifest-item:hover {
  background: #f3e8ff;
}

.bp-manifest-item-icon {
  width: 1.5em;
  text-align: center;
  flex: none;
}

.bp-card.bp-manifest-flash {
  animation: bpManifestFlash 2.1s ease;
}

@keyframes bpManifestFlash {
  0%, 60% {
    box-shadow: 0 0 0 4px rgba(179, 136, 255, 0.85), 0 10px 30px rgba(108, 71, 255, 0.35);
  }
  100% {
    box-shadow: none;
  }
}

/* ──────────── First-visit Welcome Tour ──────────── */
.bp-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  pointer-events: none;
}

.bp-tour-ring {
  position: fixed;
  border-radius: 18px;
  box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.55), 0 0 0 3px rgba(255, 158, 207, 0.9);
  transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.bp-tour-tip {
  position: fixed;
  width: min(300px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 16px 44px rgba(30, 41, 59, 0.35);
  pointer-events: auto;
  font-family: 'Poppins', sans-serif;
  transition: left 0.25s ease, top 0.25s ease;
}

.bp-tour-tip-title {
  font-weight: 700;
  font-size: 1rem;
  color: #7c3aed;
  margin-bottom: 4px;
}

.bp-tour-tip-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
}

.bp-tour-tip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.bp-tour-step-count {
  font-size: 0.78rem;
  color: #94a3b8;
}

.bp-tour-tip-btns {
  display: flex;
  gap: 8px;
}

.bp-tour-skip-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 10px;
}

.bp-tour-skip-btn:hover {
  color: #475569;
}

.bp-tour-next-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9ecf, #b388ff);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 71, 255, 0.3);
}

.bp-tour-next-btn:hover {
  transform: translateY(-1px);
}

/* ──────────── Featured Today slot ──────────── */
.bp-card-featured {
  margin: 10px 0;
  border: 3px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ffd166, #ff9ecf, #b388ff) border-box;
  font-family: 'Poppins', sans-serif;
}

.bp-featured-ribbon {
  display: inline-block;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ffb347, #ff9ecf);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.bp-featured-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bp-featured-icon {
  font-size: 2.2rem;
  flex: none;
}

.bp-featured-text {
  flex: 1 1 220px;
  min-width: 0;
}

.bp-featured-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
}

.bp-featured-pitch {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.4;
}

.bp-featured-cta {
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9ecf, #b388ff);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(108, 71, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-featured-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(108, 71, 255, 0.4);
}
