/* assets/css/style.css */

/* Estilos generales */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tarjeta de publicación */
.post-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
    background-color: white;
    flex-direction: flex-column;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Imagen de publicación: altura reducida al 50% (90px) y se ve completa */
.post-image {
    height: 90px;
    object-fit: contain;
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    opacity: 0.95;
}

/* Cuerpo de la tarjeta: padding equilibrado */
.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Título de la publicación - tamaño destacado pero proporcional */
.post-card .card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

/* Contenido del texto en el resumen */
.post-card .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Etiquetas (tags) */
.tag-badge {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 4px;
}

/* Alertas con desvanecimiento automático */
.alert-autohide {
    transition: opacity 0.5s ease-out;
    opacity: 1;
}

.alert-autohide.fade-out {
    opacity: 0;
}

/* Tabla en el panel de administración */
.admin-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}

/* Botón con fondo negro y texto blanco */
.btn-black {
    background-color: #000;
    border-color: #000;
    color: white;
}

.btn-black:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.btn-black:focus,
.btn-black.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.btn-black:disabled {
    background-color: #333;
    border-color: #333;
}