/* ================================================================
   Scuba.es — Marine Editorial Design System
   Custom CSS (Tailwind extensions & prose styles)
   ================================================================ */

/* ── Google Material Symbols ─────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

/* ── Shadows ─────────────────────────────────────────────────── */
.ambient-shadow  { box-shadow: 0 10px 30px -10px rgba(15, 76, 92, 0.08); }
.scuba-shadow    { box-shadow: 0 4px 20px -2px rgba(15, 76, 92, 0.06); }

/* ── Card hover lift ─────────────────────────────────────────── */
.scuba-card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.scuba-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(15, 76, 92, 0.12);
}

/* ── Dot-grid background pattern ─────────────────────────────── */
.bg-pattern {
  background-color: #f7f9fb;
  background-image: radial-gradient(#c0c8cb 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* ── Hero full-bleed gradient overlay ───────────────────────── */
.hero-mask {
  background: linear-gradient(180deg, rgba(0, 52, 65, 0.35) 0%, rgba(0, 52, 65, 0.82) 100%);
}

/* ── Recommendation / affiliate left-border accent ──────────── */
.recommendation-accent { border-left: 4px solid #7cf3e9; }

/* ── 12-column editorial grid ───────────────────────────────── */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ── Global body ─────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f9fb;
  color: #191c1e;
  -webkit-font-smoothing: antialiased;
}

/* ── Headings default to Plus Jakarta Sans ───────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Prose (article body) ────────────────────────────────────── */
.prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #003441;
  margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #003441;
  margin: 2rem 0 0.75rem;
}
.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #191c1e;
  margin-bottom: 1.25rem;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}
.prose ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #191c1e;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #006a64;
  flex-shrink: 0;
}
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.prose ol li {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #191c1e;
}
.prose a {
  color: #006a64;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { font-weight: 600; }
.prose blockquote {
  border-left: 4px solid #7cf3e9;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #40484b;
}

/* ── Read progress bar ───────────────────────────────────────── */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #006a64, #7cf3e9);
  z-index: 9999;
  width: 0%;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ── Cookie banner (slides up from bottom) ───────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookie-banner.visible { transform: translateY(0); }

/* ── Mobile menu (slides in from right) ─────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9997;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open { transform: translateX(0); }

/* ── Search overlay (fade) ───────────────────────────────────── */
#search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9996;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Nav scroll shadow ───────────────────────────────────────── */
.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 52, 65, 0.08);
}

/* ── Scroll reveal animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── TOC active link ─────────────────────────────────────────── */
.toc-link.active {
  color: #006a64;
  font-weight: 600;
}
.toc-link.active .toc-dot {
  background: #006a64;
  transform: scale(1.4);
}
.toc-dot {
  transition: transform 0.2s, background 0.2s;
}

/* ── FAQ / details accordion ─────────────────────────────────── */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ── Star rating (Argemí: valoración) ───────────────────────── */
.star-btn {
  background: none; border: none; padding: 4px; cursor: pointer;
  transition: transform 0.15s;
}
.star-btn:hover { transform: scale(1.2); }
.star-btn .material-symbols-outlined {
  font-size: 32px;
  color: #c0c8cb;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  transition: color 0.15s, font-variation-settings 0.1s;
}
.star-btn.highlighted .material-symbols-outlined {
  color: #f59e0b;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Social share buttons ────────────────────────────────────── */
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; border: 2px solid;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}

/* ── Comment cards ───────────────────────────────────────────── */
.comment-card {
  background: #fff;
  border: 1px solid #e0e3e5;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

/* ── Mid-article CTA box ─────────────────────────────────────── */
.cta-mid {
  background: linear-gradient(135deg, #003441 0%, #006a64 100%);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}

/* ── Line clamp fallback ─────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
