/* ========================================
   Reference Charts Screen
   ======================================== */

#screen-reference {
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 80px;
}

.ref-header {
  text-align: center;
  margin-bottom: 20px;
}

.ref-header h1 {
  font-family: 'Montserrat', Helvetica, sans-serif;
  font-weight: 200;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

/* Pages */
.ref-pages {
  position: relative;
  overflow: hidden;
}

.ref-page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.ref-page.active {
  display: block;
}

/* Reference cards */
.ref-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 16px;
}

.ref-card img {
  width: 100%;
  display: block;
}

.ref-card-caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ref-card-caption h3 {
  font-family: 'Montserrat', Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Quote card */
.ref-quote {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.ref-quote blockquote {
  font-family: 'Montserrat', Helvetica, sans-serif;
  font-weight: 200;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.ref-quote cite {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Page dots */
.ref-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

.ref-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.ref-dot.active {
  width: 24px;
  border-radius: 5px;
  background: var(--accent-blue);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ref-page {
    animation: none;
  }
}
