/**
 * MoonPhaseWidget Styles
 * Estilos para o widget de exibição de fases da lua
 */

/* Container principal */
.moon-phase-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.moon-phase-widget:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.moon-phase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Visual da lua (emoji) */
.moon-phase-visual {
    margin-bottom: 15px;
}

.moon-emoji {
    font-size: 80px;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    user-select: none;
}

/* Nome da fase */
.moon-phase-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 15px 0;
}

/* Detalhes da fase */
.moon-phase-details {
    width: 100%;
    margin: 15px 0;
}

.moon-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.moon-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #555;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

/* Descrição da fase */
.moon-phase-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: left;
}

.moon-phase-description p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* Barra de progresso */
.moon-phase-progress {
    width: 100%;
    margin-top: 20px;
}

.moon-phase-progress .progress {
    height: 25px;
    border-radius: 12px;
}

.moon-phase-progress small {
    display: block;
    margin-top: 5px;
}

/* Tamanhos do widget */

/* Small */
.moon-phase-small .moon-emoji {
    font-size: 40px;
}

.moon-phase-small .moon-phase-name {
    font-size: 16px;
    margin: 5px 0 10px 0;
}

.moon-phase-small .moon-detail-item {
    padding: 5px 0;
    font-size: 13px;
}

.moon-phase-small {
    padding: 15px;
}

/* Medium (padrão) */
.moon-phase-medium .moon-emoji {
    font-size: 80px;
}

.moon-phase-medium .moon-phase-name {
    font-size: 24px;
}

/* Large */
.moon-phase-large {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.moon-phase-large .moon-emoji {
    font-size: 120px;
}

.moon-phase-large .moon-phase-name {
    font-size: 32px;
    margin: 15px 0 20px 0;
}

.moon-phase-large .moon-detail-item {
    padding: 12px 0;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 767px) {
    .moon-phase-widget {
        padding: 15px;
    }

    .moon-phase-large .moon-emoji {
        font-size: 90px;
    }

    .moon-phase-medium .moon-emoji {
        font-size: 70px;
    }

    .moon-phase-large .moon-phase-name {
        font-size: 26px;
    }

    .moon-phase-medium .moon-phase-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .moon-phase-large .moon-emoji {
        font-size: 70px;
    }

    .moon-phase-medium .moon-emoji {
        font-size: 60px;
    }

    .moon-phase-small .moon-emoji {
        font-size: 35px;
    }

    .moon-phase-large .moon-phase-name,
    .moon-phase-medium .moon-phase-name {
        font-size: 18px;
    }

    .moon-detail-item {
        font-size: 14px;
    }
}

/* Tema escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .moon-phase-widget {
        background: #2b3e50;
        color: #ecf0f1;
    }

    .moon-phase-name,
    .detail-value {
        color: #fff;
    }

    .detail-label {
        color: #bdc3c7;
    }

    .moon-detail-item {
        border-bottom-color: #34495e;
    }

    .moon-phase-description {
        background: #34495e;
        color: #ecf0f1;
    }
}

/* Animações */
@keyframes moon-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
}

.moon-phase-widget:hover .moon-emoji {
    animation: moon-glow 3s ease-in-out infinite;
}
