/* ===================================================
   QPH FAVORITES
=================================================== */

/* ===================================================
   GRID
=================================================== */

#qph-favorites-container {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));

    gap: 16px;

    margin-top: 40px;
}

/* ===================================================
   CARD
=================================================== */

.qph-favorite-card {

    position: relative;

    background: #2b1650;

    border-radius: 22px;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    box-shadow:
        0 10px 25px rgba(0,0,0,.25);
}

.qph-favorite-card:hover {

    transform:
        translateY(-8px)
        scale(1.02);

    box-shadow:
        0 18px 40px rgba(0,0,0,.45);
}

/* ===================================================
   IMAGE
=================================================== */

.qph-image-wrapper {

    overflow: hidden;
}

.qph-favorite-card img {

    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;

    display: block;

    transition: transform .4s ease;
}

.qph-favorite-card:hover img {

    transform: scale(1.05);
}

/* ===================================================
   CONTENT
=================================================== */

.qph-favorite-card-content {

    padding: 18px;
}

.qph-favorite-card h3 {

    color: white;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 700;

    margin-bottom: 8px;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.qph-event-date {

    color: #b8b8b8;

    font-size: 13px;
}

/* ===================================================
   LINKS
=================================================== */

.qph-favorite-card a {

    text-decoration: none !important;

    color: inherit;
}

/* ===================================================
   REMOVE BUTTON
=================================================== */

.qph-remove-favorite {

    position: absolute;

    top: 12px;

    right: 12px;

    width: 32px;

    height: 32px;

    border-radius: 999px;

    border: none;

    background:
        rgba(255, 0, 85, 0.95);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 13px;

    cursor: pointer;

    z-index: 20;

    transition: .2s ease;
}

.qph-remove-favorite:hover {

    transform: scale(1.1);
}

/* =========================================
   BOTON GUARDAR PARCHE
========================================= */

button.qph-favorite-btn,
.qph-favorite-btn,
.elementor-widget-button .qph-favorite-btn {

    width: 70% !important;

    padding: 14px 20px !important;

    border-radius: 16px !important;

    border: 2px solid rgba(255,255,255,0.15) !important;

    background: rgba(20,20,20,0.55) !important;

    backdrop-filter: blur(14px) !important;

    color: #ffffff !important;

    font-size: 16px !important;

    font-weight: 400 !important;

    cursor: pointer !important;

    transition: all .25s ease !important;

    box-shadow:
        0 8px 20px rgba(0,0,0,.25) !important;

    text-decoration: none !important;

    outline: none !important;
}

/* HOVER */

button.qph-favorite-btn:hover,
.qph-favorite-btn:hover {

    transform: translateY(-3px) !important;

    background: rgba(255,255,255,0.10) !important;

    border-color: rgba(255,255,255,0.25) !important;
}

/* =========================================
   ESTADO ACTIVO
========================================= */

button.qph-favorite-btn.active,
.qph-favorite-btn.active {

    background: #2b1650 !important;

    border: 2px solid #f59e0b !important;

    color: #ffffff !important;

    box-shadow:
        0 0 0 2px rgba(245,158,11,0.65),
        0 10px 30px rgba(245,158,11,0.45) !important;

    animation: qphPulse .35s ease !important;
}

/* ICONO */

button.qph-favorite-btn::before,
.qph-favorite-btn::before {

    content: "🤍";

    margin-right: 8px;
}


/* ANIMACION */

@keyframes qphPulse {

    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   ELIMINAR LINEAS / ESTILOS ASTRA
========================================= */

button.qph-favorite-btn,
button.qph-favorite-btn:hover,
button.qph-favorite-btn:focus,
button.qph-favorite-btn:active {

    text-decoration: none !important;

    outline: none !important;

    box-shadow: none;
}

button.qph-favorite-btn::after,
button.qph-favorite-btn::before {

    text-decoration: none !important;
}

/* ===================================================
   EMPTY STATE
=================================================== */

.qph-empty-state {

    text-align: center;

    padding: 120px 20px;
}

.qph-empty-state h2 {

    color: white;

    font-size: 34px;

    margin-bottom: 16px;
}

.qph-empty-state p {

    color: #b8b8b8;

    margin-bottom: 30px;
}

/* ===================================================
   DISCOVER BUTTON
=================================================== */

.qph-discover-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 26px;

    border-radius: 999px;

    background: #ff0055;

    color: white;

    text-decoration: none;

    font-weight: 700;

    transition: .2s ease;
}

.qph-discover-btn:hover {

    transform: translateY(-2px);
}

/* ===================================================
   LOADING
=================================================== */

.qph-loading {

    color: white;

    text-align: center;

    padding: 80px 0;
}

/* ===================================================
   ERROR
=================================================== */

.qph-error {

    color: white;

    text-align: center;
}

/* ===================================================
   MOBILE
=================================================== */

@media (max-width: 768px) {

    #qph-favorites-container {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 16px;
    }

    .qph-favorite-card h3 {

        font-size: 14px;
    }

    .qph-favorite-card-content {

        padding: 12px;
    }

    .qph-favorite-btn {

        font-size: 14px;

        padding: 12px 14px;
    }
}