/* ============================================================
   DiveLog — Log Dives Page Styles
   Solo stili non coperti da DS components.
   DS components usati: button, badge, icon-button,
                         page-header, toolbar, filters-bar,
                         datatable, modal, toast, app-shell
   Token: css/tokens.css
   ============================================================ */

/* ── Location cell ellipsis ── */
.dive-location-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Share Modal Preview ── */
.share-preview {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-container);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-small);
  color: var(--color-text-secondary);
  font-size: var(--font-body-medium);
}

/* ── Share Error Message ── */
.share-error {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(186, 26, 26, 0.08);
  border-radius: var(--radius-small);
  color: var(--color-error);
  font-size: var(--font-body-medium);
}

.share-error[hidden] {
  display: none;
}

/* ── Course name under badge ── */
.badge-course-name {
  display: block;
  font-size: var(--font-label-large);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ── Decorative Bubbles ── */
.dashboard-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -20px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.15;
  animation: bubble-rise linear infinite;
  pointer-events: none;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
    display: none;
  }
}

/* ── Responsive ── */
@media (max-width: 599px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .dive-location-cell {
    max-width: 120px;
  }
}

@media (max-width: 430px) {
  .dive-location-cell {
    max-width: 100px;
  }
}

@media (max-width: 375px) {
  .dive-location-cell {
    max-width: 80px;
  }
}

@media (max-width: 320px) {
  .dive-location-cell {
    max-width: 60px;
  }
}