/* Modal Global para Exibição de Manchetes - Design Profissional */
.modal-manchete { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.35s ease-out;
}

.modal-manchete-content { 
    background-color: #fafaf8; 
    margin: 3vh auto; 
    padding: 0;
    border-radius: 16px; 
    width: 92%; 
    max-width: 1000px;
    max-height: 92vh; 
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 80px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.1);
    border: 1px solid rgba(106, 79, 0, 0.1);
}

.modal-manchete-header { 
    background: linear-gradient(135deg, #8b6914 0%, #6a4f00 100%);
    color: #fff; 
    padding: 20px 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 3px solid rgba(250, 188, 5, 0.3);
}

.modal-manchete-title { 
    font-size: 20px; 
    font-weight: 600; 
    margin: 0;
    display: flex; 
    align-items: center; 
    gap: 12px;
    font-family: 'Merriweather', Georgia, serif;
    letter-spacing: 0.3px;
}

.modal-manchete-title i {
    font-size: 22px;
    opacity: 0.9;
}

.modal-manchete-close { 
    color: #fff; 
    font-size: 32px; 
    font-weight: 300;
    cursor: pointer; 
    border: none; 
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
    line-height: 1;
    transition: all 0.3s ease;
}

.modal-manchete-close:hover { 
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg) scale(1.05);
}

.modal-manchete-body { 
    padding: 28px; 
    max-height: calc(92vh - 90px); 
    overflow-y: auto;
    font-family: 'Merriweather', Georgia, serif; 
    line-height: 1.8;
    font-size: 15px; 
    color: #2c2c2c;
    background: #fafaf8;
}

.modal-manchete-body::-webkit-scrollbar {
    width: 10px;
}

.modal-manchete-body::-webkit-scrollbar-track {
    background: #f0f0ee;
    border-radius: 10px;
}

.modal-manchete-body::-webkit-scrollbar-thumb {
    background: #c9b896;
    border-radius: 10px;
    border: 2px solid #f0f0ee;
}

.modal-manchete-body::-webkit-scrollbar-thumb:hover {
    background: #b5a27d;
}

.modal-manchete-meta { 
    background: linear-gradient(to right, #f5f3f0, #fafaf8); 
    padding: 18px 20px; 
    margin-bottom: 24px;
    border-radius: 10px; 
    border-left: 5px solid #8b6914;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: 'Inter', sans-serif;
}

.modal-manchete-meta strong {
    color: #6a4f00;
    font-weight: 600;
}

.modal-manchete-content-flex {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.modal-manchete-texto {
    flex: 1;
    min-width: 300px;
}

.modal-manchete-texto p {
    margin-bottom: 16px;
    text-align: justify;
    text-indent: 2em;
}

.modal-manchete-imagem-container {
    flex: 0 0 auto;
    max-width: 320px;
}

.modal-manchete-imagem-container > div:first-child {
    text-align: center;
    margin-bottom: 12px;
    color: #6a4f00;
    font-family: 'Inter', sans-serif;
}

.modal-manchete-imagem-wrapper {
    border: 3px solid #e6dcc8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modal-manchete-imagem-wrapper:hover {
    border-color: #8b6914;
    box-shadow: 0 6px 24px rgba(139, 105, 20, 0.2);
}

.modal-manchete-imagem {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}
.modal-manchete-imagem-container #modal-manchete-notfound {
    display: none;
    text-align: center;
    padding: 24px;
    color: #8b6914;
    font-size: 14px;
    background: #fff9e6;
    border-radius: 8px;
    border: 2px dashed #e6dcc8;
    font-family: 'Inter', sans-serif;
}

.modal-manchete-imagem-container #modal-manchete-notfound i {
    display: block;
    font-size: 42px;
    margin-bottom: 10px;
    opacity: 0.6;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideIn {
    from { 
        transform: translateY(-60px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .modal-manchete-content {
        width: 95%;
        max-width: 100%;
    }
    
    .modal-manchete-content-flex {
        flex-direction: column;
    }
    
    .modal-manchete-imagem-container {
        max-width: 100%;
        width: 100%;
    }
    
    .modal-manchete-texto {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .modal-manchete-content {
        margin: 2vh auto;
        max-height: 96vh;
        border-radius: 12px;
    }
    
    .modal-manchete-header {
        padding: 16px 18px;
    }
    
    .modal-manchete-title {
        font-size: 17px;
    }
    
    .modal-manchete-body {
        padding: 20px;
        font-size: 14px;
    }
    
    .modal-manchete-close {
        width: 36px;
        height: 36px;
        font-size: 28px
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .modal-manchete-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-manchete-content-flex {
        flex-direction: column;
    }
    
    .modal-manchete-imagem-container {
        max-width: 100%;
    }
}
