#capa {
    width: 100%;
    min-height: calc(100vh - 70px);
    /* height: 100%; */
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    overflow: hidden;
}

#capa_bg {
    width: 100%;
    min-height: calc(100vh - 70px);
    /* height: 100%; */
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 1s ease-in-out;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

a{
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#capa_l1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 90px;
    padding-top: 0px;
}

.capa-l1-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.capa-l1-right {
    display: flex;
    align-items: center;
}

#disciplinas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#disciplinas a {
    background: var(--secondary);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 var(--secondary-dark);
    display: inline-block;
}

#disciplinas a:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--secondary-dark);
}

.img_serie {
    display: flex;
    gap: 8px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { 
        transform: translateY(50px) scale(0.8); 
        opacity: 0; 
    }
    60% { 
        transform: translateY(-10px) scale(1.05); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(0) scale(1); 
    }
}

.img_serie img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.img_serie img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
}

#capa_l2 {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.l2_col1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.l2_col2 {
    flex: 0 0 355px;
    position: relative;
}

#capa-thumb {
    position: relative;
    overflow: hidden;
    
    
    transition: all 0.5s ease;
    transform: rotate(-2deg);
    
}

#capa-thumb:hover {
    transform: rotate(0) scale(1.02);
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); */
}

#capa-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
    border: 6px solid white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

#capa-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(78, 205, 196, 0.3) 0%, rgba(65, 196, 159, 0.3) 100%); */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#capa-thumb:hover::after {
    opacity: 1;
}

#capa_titulo h1 {
    font-size: 68px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
}

#capa_temas h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 15px 0;
    opacity: 0.9;
    color: var(--accent-2);
}

#keys-lista ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#keys-lista li {
    margin-bottom: 10px;
}

#keys-lista a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 var(--primary-dark);
}

#keys-lista a:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--primary-dark);
}

#capa_descricao {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

#capa_l3 {
    /* margin-top: auto; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.9s;
    animation-fill-mode: both;
    flex: 1;
    align-items: flex-end;
}

.autor {
    font-size: 16px;
    /* opacity: 0.8; */
    line-height: 1.5;
}




.btn-inicial {
    background: var(--primary);
    color: white;
    font-size: 24px;
    font-weight: 700;
    padding: 18px 36px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 var(--primary-dark);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-inicial:hover {
    filter: brightness(1.1);
    transform: translateY(-5px);
    box-shadow: 0 11px 0 var(--primary-dark);
}

.btn-inicial:active {
    filter: brightness(0.95);
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-inicial img {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}



/* Botão compartilhar no header */
.btn-compartilhar-header {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-compartilhar-header:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-compartilhar-header:active {
    transform: translateY(0);
}

.share-icon,
.copy-icon {
    font-size: 20px;
    display: inline-block;
}

.social-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* Estilo para compartilhamento social */
.share-container {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.share-btn img {
    width: 25px;
    height: 25px;
}

/* Mascote na página de capa */
.mascote-capa {
    position: absolute;
    right: 50px;
    bottom: 50px;
    width: 150px;
    height: 150px;
    cursor: pointer;
    z-index: 100;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.mascote-capa img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.mascote-capa-balloon {
    position: absolute;
    top: -80px;
    right: 0;
    background: white;
    color: var(--neutral-800);
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    width: 250px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mascote-capa-balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.mascote-capa:hover .mascote-capa-balloon {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media only screen and (max-width: 768px) {
    #capa, #capa_bg {
        height: auto;
    }
    
    #capa_l1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    
    .capa-l1-left {
        width: 100%;
        justify-content: flex-start;
    }
    
    .capa-l1-right {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .btn-compartilhar-header {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    #capa_l2 {
        flex-direction: column-reverse;
        gap: 30px;
        margin-bottom: 10px;
    }
    
    #capa_titulo h1 {
        font-size: 32px;
    }
    
    .l2_col2 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    #capa-thumb {
        max-width: 100%;
        height: auto;
    }
    
    #capa-thumb img {
        width: 100%;
        height: auto;
    }
    
    #capa_descricao {
        font-size: 16px;
    }
    
    #capa_l3 {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .btn-inicial {
        width: 100%;
        font-size: 20px;
        padding: 15px 25px;
    }
    
    .share-container {
        position: static;
        flex-direction: row;
        transform: none;
        margin-top: 30px;
        justify-content: center;
    }
    
    .mascote-capa {
        right: 20px;
        bottom: 20px;
        width: 100px;
        height: 100px;
    }
    
    .mascote-capa-balloon {
        width: 200px;
        font-size: 14px;
    }
    

}

/* Estilos do Modal de Compartilhamento */
.modal-capa {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-capa-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -50%) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

.modal-capa-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: color 0.3s ease;
}

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

.modal-capa-content h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid #4285f4;
}

.url-container-capa {
    display: flex;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.url-container-capa input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px 0 0 12px;
    font-size: 14px;
    background-color: #f8f9fa;
    border-right: none;
    font-family: monospace;
    color: #666;
}

.url-container-capa input:focus {
    outline: none;
    border-color: #4285f4;
    background-color: white;
}

.btn-copiar-capa {
    background: linear-gradient(135deg, #4285f4 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-copiar-capa:hover {
    background: linear-gradient(135deg, #3367d6 0%, #1d4ed8 100%);
    transform: translateY(-2px);
}

.btn-copiar-capa:active {
    transform: translateY(0);
}

.redes-sociais-capa p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    text-align: center;
}

.botoes-redes-capa {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.btn-social-capa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-social-capa:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-social-capa .social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.whatsapp-capa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.telegram-capa {
    background: linear-gradient(135deg, #0088cc 0%, #005f8a 100%);
}

.facebook-capa {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.classroom-capa {
    background: linear-gradient(135deg, #4285f4 0%, #2563EB 100%);
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-capa-content {
        padding: 20px;
        width: 95%;
        border-radius: 15px;
    }
    
    .modal-capa-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .botoes-redes-capa {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn-social-capa {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .url-container-capa {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .url-container-capa input {
        border-radius: 12px 12px 0 0;
        border-right: 1px solid #ddd;
        border-bottom: none;
    }
    
    .btn-copiar-capa {
        border-radius: 0 0 12px 12px;
        justify-content: center;
        padding: 12px;
    }
}



.open-channel {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 0 #ccc;
}

.open-channel:hover {
    color: #000;
    box-shadow: 0 7px 0 #ccc;
}

/* Botão Roteiro de Aulas */
.btn-roteiro-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin-right: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-roteiro-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #FF5722 0%, #E65100 100%);
}

.btn-roteiro-header:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.roteiro-icon {
    font-size: 20px;
}

/* Modal Roteiro */
.modal-roteiro {
    z-index: 1001;
}

.modal-roteiro-content {
    max-width: 550px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-roteiro-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-roteiro-header h3 {
    color: #FF6B35;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.modal-roteiro-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.modal-roteiro-explanation {
    margin-bottom: 30px;
}

.roteiro-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 12px;
    border-left: 4px solid #FF6B35;
}

.roteiro-feature:last-child {
    margin-bottom: 0;
}

.roteiro-feature-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.roteiro-feature-text strong {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.roteiro-feature-text p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.modal-roteiro-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-usar-roteiro {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 280px;
    justify-content: center;
}

.btn-usar-roteiro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #FF5722 0%, #E65100 100%);
}

.btn-usar-roteiro:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.roteiro-action-icon {
    font-size: 18px;
}

/* Responsividade do Modal Roteiro */
@media (max-width: 768px) {
    .modal-roteiro-content {
        max-width: 95%;
        margin: 20px auto;
        padding: 25px;
    }
    
    .btn-roteiro-header {
        padding: 10px 16px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .modal-roteiro-header h3 {
        font-size: 20px;
    }
    
    .roteiro-feature {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .roteiro-feature-icon {
        font-size: 20px;
        width: 35px;
    }
    
    .roteiro-feature-text strong {
        font-size: 14px;
    }
    
    .roteiro-feature-text p {
        font-size: 13px;
    }
    
    .btn-usar-roteiro {
        padding: 14px 24px;
        font-size: 14px;
        min-width: 250px;
    }
    
    .capa-l1-right {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .btn-roteiro-header, .btn-compartilhar-header {
        margin-right: 0;
        justify-content: center;
    }
}