/**
 * assets/css/astro-report.css
 * Icosmo Astro Music - Premium Report Styles v1.6.0
 *
 * DESIGN RULES:
 * - Premium dark aesthetic (#191919 baseline).
 * - High-readability large cards (Max 2 per row).
 * - Matrix Signature: Colored symbols, White names.
 * - Colored Hour Numbers for Astro Chart.
 */

/* --- REPORT CONTAINER --- */
#am-visual-results {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    background-color: #191919;
    padding: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

/* --- STATIC WAVEFORM HEADER --- */
.am-report-waveform-header {
    width: 100%;
    height: 220px;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.9);
}

.am-report-waveform-header canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- CALCULATION SPECS --- */
/* --- HERO HEADER --- */
.am-report-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.am-hero-zodiac {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.am-hero-zodiac-name {
    font-size: 1.2em;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -10px;
}

.am-report-meta-specs-box {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    color: #888;
    line-height: 1.6;
    border-left: 2px solid #444;
    padding-left: 30px;
}

.am-report-meta-specs-box strong {
    display: block;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.8em;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

@media (max-width: 700px) {
    .am-report-hero-header {
        flex-direction: column;
        text-align: center;
    }
    .am-report-meta-specs-box {
        border-left: none;
        border-top: 1px solid #333;
        padding-left: 0;
        padding-top: 20px;
    }
}

/* --- SECTION HEADINGS --- */
.am-report-section-title {
    font-size: 1.3em;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 2px solid #4f4f4f;
    padding-bottom: 12px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* --- MATRIX SIGNATURE GRID --- */
.am-report-signature-container {
    background-color: #1e1e1e;
    border-left: 6px solid #4f4f4f;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.am-report-signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.am-sig-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.am-sig-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
}

.am-sig-label {
    flex: 0 0 160px;
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

.am-sig-value {
    flex: 1;
    color: #eee;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

/* Logic Rule: Names stay white/grey, Symbols carry Matrix color */
.am-sig-value span:not(.symbol):not(.color-swatch):not([style*="important"]) {
    color: #eee !important;
}

/* --- FULL WIDTH CHART --- */
.am-report-chart-container {
    background-color: #1e1e1e;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.am-report-chart-container svg {
    width: 100%;
    max-width: 650px;
    height: auto;
}

/* --- CARDS GRID --- */
.am-report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 30px;
    width: 100%;
}

.am-report-card {
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.am-report-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #222;
}

.am-report-card-image-wrapper img {
    height: 85%;
    width: auto;
    max-width: 90%;
    object-fit: contain;
}

.am-report-card-content {
    padding: 30px;
}

.am-report-card-meta {
    font-size: 0.8em;
    color: #8cc74b;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.am-report-card-title {
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.am-report-card-desc {
    font-size: 1.05em;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.am-report-card-keywords {
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #2a2a2a;
    padding-top: 15px;
    font-style: italic;
}

/* --- SUMMARY TEXT BLOCKS --- */
.am-summary-text {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 1.1em;
    border-left: 6px solid #4f4f4f;
    color: #ccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- HARMONIC KEY PILLS --- */
.am-keys-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.am-key-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* --- LEGENDS --- */
.am-report-legends-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 20px;
}

.am-report-legend-box {
    background: #1e1e1e;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 10px;
}

.am-report-legend-box h5 {
    margin-top: 0;
    color: #888;
    border-bottom: 1px solid #444;
    padding-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 1px;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .am-report-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .am-report-signature-grid,
    .am-report-legends-row {
        grid-template-columns: 1fr;
    }
    .am-sig-label {
        flex: 0 0 120px;
    }
}
