/* Compass & Orientation — tool-specific styles */

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

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

.compass-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-green-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

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

/* Compass display */
.compass-display-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-8);
}

.compass-ring-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: var(--space-5);
}

.compass-ring-wrapper canvas {
    display: block;
}

.compass-heading-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.heading-degrees {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
}

.heading-dir {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-blue-300);
    margin-top: var(--space-1);
}

.compass-note {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--space-3);
}

/* Astro directions */
.compass-astro-section {
    margin-bottom: var(--space-6);
}

.compass-astro-section h2 {
    font-family: var(--font-display);
    color: var(--color-blue-200);
    margin-bottom: var(--space-4);
}

.astro-dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.astro-dir-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
}

.astro-dir-card.below { opacity: 0.4; }

.astro-dir-icon {
    font-size: 2rem;
    margin-bottom: var(--space-2);
}

.astro-dir-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-heading);
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.astro-dir-detail {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Reference section */
.compass-reference h3 {
    font-family: var(--font-display);
    color: var(--color-blue-200);
    margin-bottom: var(--space-4);
}

.reference-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.reference-method h4 {
    font-family: var(--font-display);
    color: var(--color-gold-400);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.reference-method p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--leading-relaxed);
}

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

    .compass-ring-wrapper {
        width: 260px;
        height: 260px;
    }

    .compass-ring-wrapper canvas {
        width: 260px;
        height: 260px;
    }

    .reference-methods {
        grid-template-columns: 1fr;
    }
}
