/**
 * tables.css — Tableaux positions/maisons/aspects
 * AstroTool v1.0
 */

/* ─── Sections tableaux ──────────────────────────────────────────────────────── */
.table-section {
  margin-bottom: var(--space-xl);
}

.table-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

/* ─── Tableau commun ────────────────────────────────────────────────────────── */
.astro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.astro-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.astro-table td {
  padding: 7px var(--space-sm);
  border-bottom: 1px solid rgba(42,42,74,0.5);
  vertical-align: middle;
}

.astro-table tr:last-child td { border-bottom: none; }

.astro-table tbody tr {
  cursor: pointer;
  transition: background var(--transition);
}
.astro-table tbody tr:hover {
  background: var(--bg-hover);
}
.astro-table tbody tr.highlighted {
  background: rgba(212,175,55,0.10);
}

/* ─── Colonne glyphe / symbole ───────────────────────────────────────────────── */
.col-symbol {
  font-family: var(--font-symbols);
  font-size: 1rem;
  width: 28px;
  text-align: center;
  padding-left: var(--space-xs) !important;
  padding-right: var(--space-xs) !important;
}

/* ─── Degrés ─────────────────────────────────────────────────────────────────── */
.col-degree {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--text-primary);
}

/* ─── Rétrograde ─────────────────────────────────────────────────────────────── */
.retro-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-symbols);
  margin-left: 3px;
}

/* ─── Badge Pluton ±1° ───────────────────────────────────────────────────────── */
.pluto-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: 0.7rem;
  background: rgba(221,170,0,0.12);
  color: var(--color-warning);
  border: 1px solid rgba(221,170,0,0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition);
}
.pluto-badge:hover { background: rgba(221,170,0,0.22); }
.pluto-badge.corrected {
  background: rgba(51,187,102,0.12);
  color: var(--color-success);
  border-color: rgba(51,187,102,0.25);
}

/* ─── Maison ─────────────────────────────────────────────────────────────────── */
.col-house {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Tableau aspects ────────────────────────────────────────────────────────── */
.aspect-symbol {
  font-family: var(--font-symbols);
  font-size: 1rem;
}

.aspect-harmonic .aspect-symbol { color: var(--color-aspect-harmonic); }
.aspect-tense    .aspect-symbol { color: var(--color-aspect-tense);    }
.aspect-neutral  .aspect-symbol { color: var(--color-aspect-neutral);  }

.col-orb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ─── Accordéon "Voir tous les aspects" ─────────────────────────────────────── */
.aspects-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  padding: 8px var(--space-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color var(--transition);
  width: 100%;
}
.aspects-more-btn:hover { color: var(--text-secondary); }
.aspects-more-btn .chevron {
  display: inline-block;
  transition: transform var(--transition);
}
.aspects-more-btn.open .chevron {
  transform: rotate(180deg);
}

.aspects-all {
  display: none;
}
.aspects-all.open {
  display: table-row-group;
}

/* ─── Tableau maisons ────────────────────────────────────────────────────────── */
.houses-unavailable {
  padding: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ─── Skeleton loaders ───────────────────────────────────────────────────────── */
.skeleton {
  display: block;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-row td {
  padding: 6px var(--space-sm);
}
.skeleton-cell {
  height: 12px;
  width: 80%;
}

/* ─── Responsive — colonnes masquées mobile ─────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
