/**
 * Estilos de la Página Individual de Evento (Material Design)
 *
 * @package Eventos_Mova
 */

/* ========================================
   Tarjeta principal Material Design
   ======================================== */

.evento-single-card {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    font-family: "Plus Jakarta Sans", Sans-serif;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.evento-single-card:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 24px 56px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Header con imagen de fondo
   ======================================== */

.evento-single-card__header {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.evento-single-card__header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.7) 100%);
}

/* Logo del club */
.evento-single-card__logo {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
}

.evento-single-card__logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contenido del header */
.evento-single-card__header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.evento-single-card__title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex: 1;
}

/* Badge de precio en el header */
.evento-single-card__precio-badge {
    background: linear-gradient(135deg, #7dd3fc 0%, #c4ecff 100%);
    color: #0f172a;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.5);
    flex-shrink: 0;
}

/* ========================================
   Cuerpo de la tarjeta
   ======================================== */

.evento-single-card__body {
    padding: 36px 40px 40px;
}

/* ========================================
   Chips de información
   ======================================== */

.evento-single-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.evento-single-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: background 0.2s ease;
}

.evento-single-card__chip:hover {
    background: #eef0f5;
}

.evento-single-card__chip .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #667eea;
}

.evento-single-card__chip--precio {
    background: linear-gradient(135deg, #f0ecff 0%, #ede7ff 100%);
    color: #5b3fbd;
    font-weight: 600;
}

.evento-single-card__chip--precio .dashicons {
    color: #764ba2;
}

/* ========================================
   Descripción
   ======================================== */

.evento-single-card__descripcion {
    margin-bottom: 28px;
    border-top: 1px solid #f0f0f2;
    padding-top: 28px;
}

.evento-single-card__descripcion h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px 0;
}

.evento-single-card__descripcion-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a5a;
}

.evento-single-card__descripcion-text p {
    margin: 0 0 12px 0;
}

.evento-single-card__descripcion-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Contenido extra del editor
   ======================================== */

.evento-single-card__contenido-extra {
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f2;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a5a;
}

/* ========================================
   Botón de inscripción (Material elevated)
   ======================================== */

.evento-single-card__actions {
    padding-top: 28px;
    border-top: 1px solid #f0f0f2;
    text-align: center;
}

.evento-single-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #7dd3fc 0%, #c4ecff 100%);
    color: #0f172a !important;
    text-decoration: none !important;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 14px rgba(102, 126, 234, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.evento-single-card__btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(102, 126, 234, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.1);
    color: #0f172a !important;
}

.evento-single-card__btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 14px rgba(102, 126, 234, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.evento-single-card__btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.evento-single-card__btn--disabled {
    background: #94a3b8;
    color: #e2e8f0 !important;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Fallback de gap para Safari antiguos (flex-gap parcial) */
@supports not (gap: 8px) {
    .evento-single-card__chips > * {
        margin-right: 12px;
        margin-bottom: 12px;
    }

    .evento-single-card__chips > *:last-child {
        margin-right: 0;
    }
}

.evento-single-card {
    margin-top: 125px;
    margin-bottom: 75px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .evento-single-card {
        margin: 20px 16px;
        border-radius: 16px;
    }

    .evento-single-card__header {
        min-height: 260px;
        padding: 28px 24px;
    }

    .evento-single-card__title {
        font-size: 24px;
    }

    .evento-single-card__header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .evento-single-card__body {
        padding: 24px;
    }

    .evento-single-card__chips {
        gap: 8px;
    }

    .evento-single-card__chip {
        padding: 8px 14px;
        font-size: 13px;
    }

    .evento-single-card__btn {
        padding: 14px 36px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .evento-single-card__logo img {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .evento-single-card__header {
        min-height: 200px;
        padding: 20px;
    }

    .evento-single-card__title {
        font-size: 20px;
    }

    .evento-single-card__precio-badge {
        font-size: 15px;
        padding: 8px 18px;
    }

    .evento-single-card__body {
        padding: 20px;
    }

    .evento-single-card__descripcion h3 {
        font-size: 18px;
    }
}