/* Importação dos módulos CSS */
@import 'base.css';
@import 'menu-cards.css';
@import 'news-cards.css';
@import 'interactions.css';
@import 'theme.css';

/* Cards do Menu Principal */
.menu-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,.125);
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    border-color: #0d6efd;
}

.menu-card .card-title {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.menu-card .card-body {
    padding: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-card {
        margin-bottom: 1rem;
    }
    
    .menu-card:hover {
        transform: none;
    }
    
    .menu-card .card-body {
        padding: 1rem;
    }
}

/* Utilitários */
.white-space-pre-wrap {
    white-space: pre-wrap;
} 

/* Estilo para o card de notícia */
.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
}

.card-link .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-link .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-img-overlay-custom {
    position: relative;
    padding: 0;
}

.card-img-overlay-custom img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-img-overlay-custom .card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    margin: 0;
}

.card-img-overlay-custom .card-title-overlay h5 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.card-text {
    color: white !important;
    font-size: 0.9rem;
}

.card-footer {
    border-top: none;
    background: transparent;
    padding: 0.75rem 1rem;
}

.card-footer small {
    color: white !important;
}

/* Ajuste para cards sem imagem */
.card-no-image {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    height: 100%;
}

.card-no-image .card-title {
    color: white;
    margin-bottom: 1rem;
}

.card-interactions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.interaction-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.interaction-btn:hover {
    transform: scale(1.1);
}

.interaction-btn.active {
    background: #0d6efd;
    color: white;
}

.interaction-btn.seen {
    background: #198754;
    color: white;
}


 /* Garantir que os cards tenham fundo branco no modo claro */
 body:not(.dark-mode) .card {
     background-color: #fff;
 }
 
 /* Melhorar o contraste dos links */
 body:not(.dark-mode) a:not(.btn) {
     text-decoration: none;
 }
 
 body:not(.dark-mode) a:not(.btn):hover {
     text-decoration: underline;
 }
 
 /* Estilo para os cards do menu */
 .menu-card {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     height: 100%;
 }
 
 .menu-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 20px rgba(0,0,0,0.1);
 }