/* Moon page: black background to match JPG moon images */

html,
body {
    background: #000 !important;
    background-size: auto !important;
    animation: none !important;
    min-height: 100%;
}

body .container {
    background: #000;
}

.moon-main {
    background: #000;
    flex: 1;
    padding: 20px 0 40px;
}

.moon-phase-section {
    max-width: 700px;
    margin: 0 auto;
}

.moon-phase-card {
    background: #000;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.moon-phase-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}

.moon-phase-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 50%;
    box-shadow: none;
}

.moon-phase-info {
    text-align: center;
}

.phase-name {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #21ecbe;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.lunar-age,
.phase-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.next-full-moon {
    font-size: 0.95rem;
    color: #21ecbe;
    margin-top: 12px;
    font-weight: 500;
}

.moon-details-card {
    background: #000;
    border-radius: 15px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    margin-top: 20px;
    overflow: hidden;
}

.moon-details-collapse {
    border: none;
}

.moon-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.moon-details-summary::-webkit-details-marker,
.moon-details-summary::marker {
    display: none;
}

.moon-details-summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.moon-details-summary .details-title {
    margin: 0;
}

.collapse-icon {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease;
}

.moon-details-collapse[open] .collapse-icon {
    transform: rotate(180deg);
}

.moon-details-grid {
    display: grid;
    padding: 0 30px 24px 30px;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.moon-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.moon-detail-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.moon-detail-value {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
}

@media (max-width: 480px) {
    .moon-details-grid {
        grid-template-columns: 1fr;
    }
}

.nav-menu li a.active {
    color: #21ecbe;
}

.footer .last-updated {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .moon-phase-display {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}
