/**
 * ==============================================================
 * 🎟️ Eventos Córdoba – Ficha de evento (single-event)
 * 📄 Archivo: includes/modules/single-event/single-event.css
 * ==============================================================
 */

.ec-single-event-root {
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

/* HERO */

.ec-single-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.ec-single-hero-media {
    flex: 0 0 320px;
    max-width: 320px;
}

.ec-single-hero-thumb-img,
.ec-single-hero-thumb-placeholder {
    display: block;
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    background: #e5e7eb;
    min-height: 200px;
}

.ec-single-hero-body {
    flex: 1;
    min-width: 0;
}

.ec-single-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ec-single-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.ec-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 13px;
    color: #374151;
}

/* Píldora de estado de día (Hoy / Mañana / Quedan X días / Finalizado) */
.ec-hero-pill-day {
    font-weight: 600;
}

/* Hoy (verde) */
.ec-hero-pill-day--today {
    background: #dcfce7;
    color: #166534;
}

/* Mañana (amarillo) */
.ec-hero-pill-day--tomorrow {
    background: #fef9c3;
    color: #854d0e;
}

/* Quedan X días (naranja) */
.ec-hero-pill-day--soon {
    background: #ffedd5;
    color: #9a3412;
}

/* Finalizado (gris) */
.ec-hero-pill-day--past {
    background: #e5e7eb;
    color: #4b5563;
}

.ec-hero-pill-price {
    background: #111827;
    color: #ffffff;
}

.ec-single-hero-excerpt {
    font-size: 15px;
    color: #4b5563;
}

/* BODY + SIDEBAR */

.ec-single-event-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

.ec-single-event-main {
    min-width: 0;
}

.ec-single-event-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
}

.ec-single-event-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ec-single-event-meta-pills {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-pill {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.ec-pill-label {
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 2px;
}

.ec-pill-value a {
    color: #111827;
    text-decoration: none;
}

.ec-pill-value a:hover {
    text-decoration: underline;
}

/* Botón editar dentro de pill */
.ec-single-edit-button {
    font-size: 13px;
    padding: 4px 10px;
}

/* Compartir */

.ec-single-event-share {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
}

.ec-single-event-share h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.ec-single-event-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.ec-single-event-share-links a,
.ec-single-event-share-links button {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.ec-single-event-share-links a:hover,
.ec-single-event-share-links button:hover {
    background: #e5e7eb;
}

/* Responsive */

@media (max-width: 768px) {
    .ec-single-hero {
        flex-direction: column;
    }

    .ec-single-hero-media {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .ec-single-event-body {
        grid-template-columns: 1fr;
    }
}
