/* ==========================================================================
   Moon Phase Calculator - Local Styles

   Most styling is handled by:
   - /shared/css/base.css (layout, forms, buttons, FAQ structure)
   - /shared/css/themes/moon.css (night theme colors, dark mode)

   This file contains only calculator-specific styles.
   ========================================================================== */

/* Moon display container */
.moon-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1rem;
}

/* Large moon emoji display */
.moon-emoji {
    font-size: 6rem;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: moonGlow 3s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    }
}

/* Phase name display */
.phase-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: #e0e7ff;
    text-align: center;
    margin: 0;
}

/* Illumination percentage */
.illumination {
    font-size: 1.25rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

/* Moon info grid */
.moon-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

/* Info card styling */
.info-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.info-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
}

.info-card-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-card-value {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Upcoming phases section */
.upcoming-phases {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upcoming-phases-title {
    font-size: 1rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 1rem;
    text-align: center;
}

.upcoming-phases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.phase-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.phase-card:hover {
    background: rgba(30, 41, 59, 0.8);
}

.phase-card-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.phase-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e7ff;
    margin-bottom: 0.25rem;
}

.phase-card-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.phase-card-days {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Cycle progress bar */
.cycle-progress {
    width: 100%;
    margin-top: 1rem;
}

.cycle-progress-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.cycle-progress-bar {
    height: 8px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.cycle-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #a5b4fc);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Input feedback for validation */
.input-feedback {
    color: #fca5a5 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .moon-emoji {
        font-size: 5rem;
    }

    .phase-name {
        font-size: 1.5rem;
    }

    .illumination {
        font-size: 1.125rem;
    }

    .moon-info-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-phases-grid {
        grid-template-columns: 1fr;
    }

    .moon-display {
        padding: 1.5rem 1rem;
    }
}

/* Tablet and up */
@media (min-width: 640px) {
    .moon-emoji {
        font-size: 7rem;
    }

    .phase-name {
        font-size: 2rem;
    }
}
