/* ============================================
   ESTILS LUNACIONS
   Reutilitza prog-table, prog-table-container,
   prog-planet-symbol, prog-aspect-symbol,
   prog-asp-*, prog-signo-glyph, prog-posicion-cell,
   prog-casa, prog-ingresso-*, prog-orbe-cell,
   prog-controls, prog-result-header, prog-alert,
   prog-loading-overlay, prog-no-data, etc.
   de progressions.css
   ============================================ */

/* Leyenda */
.lun-leyenda {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
}

.lun-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.lun-tag.new-moon       { background: #1a1a2e; color: #e0e0ff; }
.lun-tag.full-moon      { background: #fff3cd; color: #856404; }
.lun-tag.solar-eclipse  { background: #ffe0b2; color: #e65100; }
.lun-tag.lunar-eclipse  { background: #d1c4e9; color: #4527a0; }

/* Files d'eclipsis */
.lun-eclipse-solar { border-left: 3px solid #ef4444; }
.lun-eclipse-lunar { border-left: 3px solid #7c3aed; }

/* Cel·la de chips d'aspectes/ingressos */
.lun-chips-cell {
    max-width: 420px;
    min-width: 200px;
}

.lun-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Chip individual */
.lun-chip {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 3px 9px;
    border-radius: 14px;
    background: var(--bg-cream, #f5f0e8);
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
}

.lun-chip .prog-planet-symbol {
    font-size: 30px;
}

.lun-chip .prog-aspect-symbol {
    font-size: 30px;
    margin-right: 20px;
}

/* Chip d'ingrés de casa */
.lun-chip-ingreso {
    border: 1px solid #c8d6b0;
    background: #f4f8ee;
}

.lun-chip-casa {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark, #3a5a7a);
}

/* Chip amb orbe ampliat */
.lun-chip-ampliado {
    opacity: 0.7;
    border-style: dashed;
}

.lun-orbe-ampliado {
    font-size: 18px;
    color: #555;
    font-weight: 400;
    margin-left: 20px;
    font-style: italic;
}

.lun-asp-ampliado {
    opacity: 0.5;
}

/* Tipus (text) */
.lun-tipo-cell {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-dark);
}

/* Ajustos per a la columna Lun (més petita) */
.lun-table td:first-child .prog-planet-symbol {
    font-size: 26px;
}

/* Responsive */
@media (max-width: 768px) {
    .lun-chips-cell {
        max-width: 200px;
    }

    .lun-chip {
        padding: 2px 6px;
        font-size: 12px;
    }

    .lun-chip .prog-planet-symbol,
    .lun-chip .prog-aspect-symbol {
        font-size: 22px !important;
    }
}
