/* Calendário de Eventos Minimalista - Frontend */

.cem-calendario-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header do calendário */
.cem-calendario-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.cem-navegacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto;
}

.cem-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cem-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.cem-mes-ano {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Grid do calendário */
.cem-calendario {
    padding: 20px;
}

.cem-dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.cem-dia-semana {
    text-align: center;
    padding: 12px 8px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cem-dias-mes {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.cem-dia {
    aspect-ratio: 1;
    border: 1px solid #f0f0f0;
    padding: 8px;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.cem-dia:hover {
    background: #fff8f5;
    border-color: #ff6b35;
}

.cem-dia-vazio {
    background: #fafafa;
    cursor: default;
}

.cem-dia-vazio:hover {
    background: #fafafa;
    border-color: #f0f0f0;
}

.cem-hoje {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-color: #ff6b35;
}

.cem-hoje .cem-numero-dia {
    color: white;
    font-weight: 700;
}

.cem-numero-dia {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.cem-eventos-dia {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
    max-height: calc(100% - 20px);
    overflow: hidden;
}

.cem-evento-item {
    padding: 2px 4px;
    border-radius: 3px;
    margin: 1px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cem-evento-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Indicador de mais eventos */
.cem-mais-eventos {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin: 1px 0;
}

.cem-mais-eventos:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Lista de eventos no modal */
.cem-lista-eventos {
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}

.cem-item-lista {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.cem-item-lista:hover {
    background: #f0f0f0;
    border-color: #ddd;
    transform: translateX(5px);
}

.cem-item-titulo {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.cem-item-info {
    font-size: 13px;
    color: #666;
}

/* Modal de detalhes */
.cem-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cem-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cem-modal-slide-in 0.3s ease;
}

@keyframes cem-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cem-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cem-modal-close:hover {
    color: #333;
}

.cem-modal-body {
    padding: 20px 30px 30px;
}

.cem-modal-body h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.cem-modal-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cem-modal-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.cem-modal-info strong {
    color: #333;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .cem-calendario-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .cem-calendario {
        padding: 10px;
    }
    
    .cem-dia {
        padding: 4px;
    }
    
    .cem-numero-dia {
        font-size: 14px;
    }
    
    .cem-dia-semana {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .cem-mes-ano {
        font-size: 20px;
    }
    
    .cem-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .cem-modal-body {
        padding: 15px 20px 20px;
    }
}

@media (max-width: 480px) {
    .cem-dia {
        aspect-ratio: 1;
        padding: 2px;
    }
    
    .cem-numero-dia {
        font-size: 12px;
    }
    
    .cem-evento-item {
        font-size: 8px;
        padding: 1px 2px;
    }
    
    .cem-mais-eventos {
        font-size: 7px;
        padding: 1px 2px;
    }
} 