/* Interactive Sky Chart — tool-specific styles */

.skychart-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.skychart-hero {
    text-align: center;
    margin-bottom: var(--space-4);
}

.skychart-hero h1 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-blue-300), var(--color-purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.skychart-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin: 0;
}

/* --- Time Controls --- */
.skychart-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.skychart-time-display {
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-blue-200);
    margin-bottom: var(--space-4);
}

/* --- Canvas Container --- */
.skychart-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto var(--space-5);
    aspect-ratio: 1 / 1;
}

.skychart-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: crosshair;
}

/* --- Legend --- */
.skychart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 500;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-star    { background: #ffffff; }
.legend-mercury { background: #b0b0b0; }
.legend-venus   { background: #ffe066; }
.legend-mars    { background: #ef4444; }
.legend-jupiter { background: #f59e0b; }
.legend-saturn  { background: #d4a017; }
.legend-moon    { background: #fde68a; }

.legend-line {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: rgba(96, 165, 250, 0.45);
    border-radius: 1px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .skychart-hero h1 {
        font-size: var(--text-3xl);
    }

    .skychart-canvas-wrap {
        max-width: 100%;
    }

    .skychart-legend {
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
    }

    .legend-item {
        font-size: 0.65rem;
    }

    .skychart-controls {
        gap: var(--space-1);
    }
}
