/* courseDetailsModal.css */

/* Remove bordas e arredonda o modal */
#course-details-modal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Área da Imagem (Hero) */
.details-hero-container {
    height: 220px;
    width: 100%;
    position: relative;
    background-color: #e9ecef;
    overflow: hidden;
}

.details-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Gradiente sobre a imagem para o texto ficar legível */
.details-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

/* Título sobre a imagem */
.details-hero-title {
    color: white;
    font-family: 'Inter', sans-serif; /* Ou a fonte do seu sistema */
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.details-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Corpo do Texto */
.details-body {
    padding: 30px;
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    max-height: 60vh; /* Limite de altura para telas pequenas */
    overflow-y: auto;
    text-align: justify;
}

/* Metadados (Instrutor, Tempo) */
.details-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #f0f9ff;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.meta-info small {
    display: block;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.meta-info span {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

/* Barra de Ação (Botão) */
.details-footer {
    padding: 15px 30px 25px 30px;
    background-color: #fff;
    display: flex;
    justify-content: flex-end;
}

/* Botão Fechar Flutuante (X) */
.btn-close-hero {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background-color: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    cursor: pointer;
    color: white;
}
.btn-close-hero:hover {
    background-color: rgba(255,255,255,0.4);
}

/* Scrollbar Bonita */
.details-body::-webkit-scrollbar { width: 6px; }
.details-body::-webkit-scrollbar-track { background: transparent; }
.details-body::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

/* Dark Mode Support */
[data-bs-theme="dark"] #course-details-modal .modal-content { background-color: #1e293b; }
[data-bs-theme="dark"] .details-body { color: #cbd5e1; }
[data-bs-theme="dark"] .details-footer { background-color: #1e293b; }
[data-bs-theme="dark"] .meta-info span { color: #f3f4f6; }
[data-bs-theme="dark"] .details-meta-grid { border-bottom-color: rgba(255,255,255,0.1); }
[data-bs-theme="dark"] .meta-icon { background-color: rgba(255,255,255,0.05); color: #38bdf8; }