/* /avisos/assets/fichas.css v1 - FICHAS DE AVISOS MÓDULO AVISOS */

/* ===== CONTENEDOR PRINCIPAL ===== */
.vista-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== FICHA BASE ===== */
.ficha-aviso {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.ficha-aviso:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== CONTENIDO HORIZONTAL ===== */
.contenido-horizontal {
    display: flex;
    padding: 12px;
    gap: 12px;
    align-items: flex-start;
}

/* ===== IMAGEN ===== */
.imagen-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.sin-imagen {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
}

/* ===== INFORMACIÓN ===== */
.info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.precio {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

.titulo {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.categoria {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== META Y ACCIONES ===== */
.meta-acciones-combinadas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: #fafafa;
}

.stats {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #666;
    font-size: 12px;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== BOTONES DE ACCIÓN ===== */
.btn-accion {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-accion.primario {
    background: #007bff;
    color: white;
}

.btn-accion.primario:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-accion.secundario {
    background: #6c757d;
    color: white;
}

.btn-accion.secundario:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

.btn-accion.peligro {
    background: #dc3545;
    color: white;
}

.btn-accion.peligro:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

/* ===== ESTADOS ESPECIALES ===== */
.ficha-aviso.premium {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
}

.ficha-aviso.premium::before {
    content: "⭐ PREMIUM";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
}

.ficha-aviso.borrador {
    opacity: 0.7;
    border-style: dashed;
}

.ficha-aviso.borrador::before {
    content: "📝 BORRADOR";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
}

.ficha-aviso.vencido {
    opacity: 0.6;
    filter: grayscale(20%);
}

.ficha-aviso.vencido::before {
    content: "⏰ VENCIDO";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
}

/* ===== ENLACES NATIVOS ===== */
.ficha-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ficha-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .contenido-horizontal {
        padding: 8px;
        gap: 8px;
    }
    
    .imagen-container {
        width: 80px;
        height: 80px;
    }
    
    .precio {
        font-size: 18px;
    }
    
    .titulo {
        font-size: 14px;
    }
    
    .meta-acciones-combinadas {
        padding: 8px;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .stats {
        justify-content: center;
    }
    
    .btn-accion {
        justify-content: center;
        width: 100%;
    }
}

/* ===== ESTADO VACÍO ===== */
.vacio {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.vacio-icono {
    font-size: 48px;
    margin-bottom: 16px;
}

.vacio h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.vacio p {
    margin: 0;
    font-size: 14px;
}