/* Dashboard Layout */
.dashboard {
  padding: 20px 0 80px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  animation: slideDown 0.5s ease;
}

.dashboard-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gold-primary);
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Dashboard Sections */
.dashboard-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease backwards;
}

.dashboard-section:nth-child(1) { animation-delay: 0.1s; }
.dashboard-section:nth-child(2) { animation-delay: 0.2s; }
.dashboard-section:nth-child(3) { animation-delay: 0.3s; }
.dashboard-section:nth-child(4) { animation-delay: 0.4s; }
.dashboard-section:nth-child(5) { animation-delay: 0.5s; }

/* Birth Summary Card */
.summary-card {
  padding: 24px;
  border-left: 4px solid var(--gold-primary);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-card {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-normal);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 168, 67, 0.15);
  border-color: var(--border-gold-hover);
}

.highlight-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.4));
}

.highlight-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-primary);
  font-family: var(--font-heading);
}

.highlight-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Planet Table */
.planet-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.planet-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.planet-table th {
  background: linear-gradient(180deg, rgba(212,168,67,0.15) 0%, rgba(212,168,67,0.05) 100%);
  color: var(--gold-light);
  font-weight: 600;
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-gold);
}

.planet-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  color: var(--text-primary);
}

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

.planet-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.planet-symbol {
  font-size: 18px;
  color: var(--gold-primary);
  margin-right: 8px;
  display: inline-block;
  width: 20px;
  text-align: center;
}

.retro-badge {
  color: var(--danger);
  font-size: 10px;
  vertical-align: super;
  margin-left: 2px;
}

/* Dignity Badges */
.dignity-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.dignity-exalted { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.dignity-debilitated { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.dignity-own { background: rgba(212, 168, 67, 0.15); color: var(--gold-light); border: 1px solid rgba(212, 168, 67, 0.3); }
.dignity-friendly { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.dignity-enemy { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.dignity-neutral { background: rgba(156, 163, 175, 0.15); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.3); }

/* House Analysis Grid */
.house-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.house-card {
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.house-card:hover {
  border-color: var(--border-gold-hover);
  background: var(--bg-card-hover);
}

.house-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.house-title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--gold-primary);
  font-weight: 600;
}

.house-chevron {
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.house-card.expanded .house-chevron {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.house-info {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.house-info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  color: var(--text-muted);
  font-size: 12px;
}

.info-value {
  color: var(--text-primary);
}

.house-planets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.planet-pill {
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.house-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.house-card.expanded .house-details {
  max-height: 200px; /* arbitrary max height */
  opacity: 1;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  margin-top: auto;
}

.signification-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Action Bar */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  z-index: var(--z-dropdown);
  display: flex;
  justify-content: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-bar.visible {
  transform: translateY(0);
}
