/* --- styles.css - MODO CLARO (CLEAN E-COMMERCE) --- */

/* 1. CONFIGURACIÓN GENERAL */
body {
    background-color: #f8fafc !important; /* Gris muy muy claro (casi blanco) */
    color: #1e293b !important; /* Texto gris oscuro (no negro puro para no cansar la vista) */
    font-family: 'Inter', system-ui, sans-serif !important;
}

/* 2. TARJETAS Y FONDOS */
.bg-white {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important; /* Bordes gris suave */
    color: #1e293b !important;
}

/* Sombras suaves y elegantes */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* 3. BOTONES PRINCIPALES (VERDE EMERALD) */
.bg-emerald-600 {
    background-color: #059669 !important; /* Verde profesional */
    color: #ffffff !important;
}
.bg-emerald-600:hover {
    background-color: #047857 !important;
}

/* Botón Vender (Naranja para llamar la acción) */
.bg-orange-500 {
    background-color: #f97316 !important;
    color: white !important;
}
.bg-orange-500:hover {
    background-color: #ea580c !important;
}

/* 4. BOTÓN WHATSAPP */
.bg-green-500 {
    background: #25D366 !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2) !important;
    transition: transform 0.2s !important;
}
.bg-green-500:hover {
    transform: scale(1.02) !important;
    background: #20bd5a !important;
}

/* 5. PRECIOS */
.text-3xl.font-bold {
    color: #1e293b !important; /* Precio oscuro y serio */
}
/* En las tarjetas pequeñas */
.text-lg.font-bold {
    color: #1e293b !important;
}

/* 6. INPUTS Y FORMULARIOS */
input, select, textarea {
    background-color: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #059669 !important; /* Borde verde al escribir */
    outline: 2px solid transparent !important;
    ring: 2px solid #059669 !important;
}

/* 7. BOTÓN "PUBLICAR AHORA" (Formulario) */
button[type="submit"] {
    border-radius: 9999px !important; /* Redondo */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    /* Mantenemos el color del fondo heredado (verde o naranja) pero forzamos texto blanco si es necesario */
}

/* 8. LISTAS Y CATEGORÍAS */
.bg-gray-50, .bg-gray-100 {
    background-color: #f1f5f9 !important;
}
.bg-emerald-50 {
    background-color: #ecfdf5 !important; /* Fondo verde muy clarito */
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

/* Corrección de textos */
.text-gray-500 { color: #64748b !important; }
.text-gray-600 { color: #475569 !important; }
.text-gray-700 { color: #334155 !important; }
.text-gray-800 { color: #1e293b !important; }
/* --- ESTILOS PARA DESTACADOS (NIVELES) --- */

/* NIVEL 2: PREMIUM ($20) - DORADO */
.featured-gold {
    border: 2px solid #eab308 !important; /* Dorado */
    background-color: #fffbeb !important; /* Crema suave */
    position: relative;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.15) !important;
}
.badge-gold {
    background: linear-gradient(90deg, #eab308, #d97706);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    border-bottom-right-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* NIVEL 1: ESTÁNDAR ($5) - AZUL */
.featured-silver {
    border: 2px solid #3b82f6 !important; /* Azul intenso */
    background-color: #eff6ff !important; /* Azul muy suave */
    position: relative;
}
.badge-silver {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    border-bottom-right-radius: 8px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

/* Botón Destacar en el Perfil */
.btn-feature {
    background: #1e293b;
    color: white;
    border: none;
    transition: all 0.2s;
}
.btn-feature:hover {
    background: #0f172a;
    transform: translateY(-1px);
}
/* --- ESTADO VENDIDO --- */
.card-sold {
    opacity: 0.75;
    filter: grayscale(100%);
    pointer-events: none; /* Desactiva clics en la tarjeta (opcional) */
}
/* Permitimos clic solo en botones de acción dentro del perfil */
.card-sold .profile-actions {
    pointer-events: auto;
    filter: grayscale(0%);
}

.badge-sold {
    background-color: #64748b; /* Gris */
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 30;
    border: 2px solid white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}