@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Poppins', sans-serif;
}

body {
    background-color: #ffffff;
    color: #37352f;
}

p {
    font-weight: 500;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 10px;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar estilo Notion */
.sidebar {
    width: 280px;
    background-color: #001b5b;
    padding: 25px 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    color: #e0e0e0;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
}

/* Header - Logo Acima do Título */
.header {
    display: flex;
    flex-direction: column;
}

.header .logo {
    width: 230px;
    height: auto;
    margin-bottom: 25px; /* Espaçamento ideal abaixo da logo */
    align-self: flex-start; /* Mantém alinhada à esquerda no padrão Notion */
}

.header-titulo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 1.2rem; /* Ajustado para um tom mais sutil estilo Notion */
    font-weight: 500;
    color: #ffffff;
    margin-left: 3px;
}

/* Acordeão (Desktop padrão: sempre aberto e visível) */
.accordion {
    margin-top: 20px;
}

.accordion-btn {
    display: none;
    border: none;
    background: transparent;
    color: #e0e0e0;
    cursor: pointer;
    padding: 5px;
    border-radius: 15px;
    transition: background-color 0.2s ease;
}

.accordion-btn:hover,
.accordion-btn:focus {
    background: rgba(255, 255, 255, 0.12);
}

.accordion-btn svg {
    display: block;
    width: 28px;
    height: 28px;
}

.accordion-content {
    max-height: none !important; /* Força ficar aberto no desktop, ignorando resquícios do JS */
    overflow: visible;
}

/* Playlist items */
.playlist-item {
    padding: 12px;
    margin: 8px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.playlist-item:hover,
.playlist-item.active {
    background-color: #1c8303;
    color: #ffffff;
}

/* Video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: -150px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    border: 0;
}

.video-info {
    margin-top: -10px;
    padding: 15px;
    border-radius: 8px;
}

.video-info h2 {
    color: #004A8D;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.description {
    color: #555555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Botão Documentação */
.doc-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1c8303;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.doc-button:hover {
    width: 170px;
}

.doc-icon {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.doc-button:hover .doc-icon {
    transform: rotate(360deg);
}

.doc-text {
    white-space: nowrap;
    padding-right: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
}

.doc-button:hover .doc-text {
    opacity: 1;
}

/* Responsividade (Mobile) */
@media (max-width: 668px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .header .logo {
        margin-bottom: 15px;
        width: 120px; /* Reduz um pouquinho o tamanho da logo no mobile */
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .video-info {
        margin-top: 15px;
        padding: 10px;
    }

    .video-info h2 {
        font-size: 1.5rem;
    }

    .header-titulo-row {
        margin-bottom: 0;
    }

    .accordion-btn {
        display: flex;
        color: white;
    }

    .accordion-content {
        max-height: 0 !important; /* Ativa o fechamento controlado por JS no mobile */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
}

/* Scroll Customizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 5px;
    border: 2px solid #f5f5f5;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}