/* =========================
   BOTÃO FAVORITO
========================= */

.tqfav-button-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tqfav-btn {
    position: relative;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tqfav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ADACAC;
    transition: all 0.25s ease;
}

.tqfav-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: transparent;
    stroke: #ADACAC;
    stroke-width: 2;
    transition: all 0.25s ease;
}

.tqfav-btn:not(.is-active):hover .tqfav-icon svg {
    fill: transparent;
    stroke: #24BDC0;
}

.tqfav-btn.is-active .tqfav-icon svg {
    fill: #E1304F;
    stroke: #E1304F;
}

.tqfav-btn.is-active:hover .tqfav-icon svg {
    fill: #C92542;
    stroke: #C92542;
}

.tqfav-btn:hover .tqfav-icon {
    transform: scale(1.1);
}

/* =========================
   LISTAGEM FAVORITOS
========================= */

.tqfav-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
    font-family: "Outfit", system-ui, sans-serif;
}

@media (max-width: 1024px) {
    .tqfav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tqfav-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* =========================
   CARD FAVORITO
========================= */

.tqfav-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(179, 225, 226, 0.75);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 10px 28px rgba(27, 36, 64, 0.08);
    max-width: 100%;
}

.tqfav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(27, 36, 64, 0.12);
}

/* Botão remover favorito dentro do card */
.tqfav-card__remove.tqfav-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 20;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    margin: 0 !important;

    background: #ffffff;
    border-radius: 999px;

    box-shadow: 
        0 6px 16px rgba(27, 36, 64, 0.12),
        0 2px 6px rgba(27, 36, 64, 0.08);

    transition: all 0.25s ease;
}

.tqfav-card__remove .tqfav-icon svg {
    width: 21px;
    height: 21px;
}

/* =========================
   IMAGEM
========================= */

.tqfav-card__image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F7F9FA;
    margin: 0 !important;
}

.tqfav-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */

.tqfav-card__placeholder {
    width: 100%;
    height: 100%;
    background: #B3E1E2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #1B2440;
    font-weight: 600;
}

/* =========================
   CONTEÚDO
========================= */

.tqfav-card__content {
    padding: 16px;
}

.tqfav-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1B2440;
    margin: 0 0 6px;
}

.tqfav-card__name a {
    color: inherit;
    text-decoration: none;
}

.tqfav-card__activity {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 12px;
}

.tqfav-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #24BDC0;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tqfav-card__button:hover {
    background: #1da5a8;
    color: #ffffff;
}

/* =========================
   MENSAGENS
========================= */

.tqfav-message {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.95rem;
    color: #6B7280;
    margin-top: 20px;
}

/* =========================
   TOAST
========================= */

.tqfav-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    max-width: 320px;
    padding: 14px 18px;
    background: #1B2440;
    color: #ffffff;
    border-radius: 14px;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 14px 34px rgba(27, 36, 64, 0.22);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: all 0.25s ease;
}

.tqfav-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tqfav-toast--warning,
.tqfav-toast--success {
    background: #8A2BE2;
}

.tqfav-toast--error {
    background: #1B2440;
}

@media (max-width: 767px) {
    .tqfav-toast {
        left: 16px;
        right: 16px;
        bottom: 18px;
        max-width: none;
        text-align: center;
    }
}

/* =========================
   PARTÍCULAS
========================= */

.tqfav-particles {
    position: absolute;
    inset: 50%;
    width: 6px;
    height: 6px;
    pointer-events: none;
}

.tqfav-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #E1304F;
    border-radius: 999px;
    opacity: 0;
    animation: tqfavParticleBurst 0.65s ease-out forwards;
}

.tqfav-particles span:nth-child(1) {
    --x: -24px;
    --y: -20px;
}

.tqfav-particles span:nth-child(2) {
    --x: 24px;
    --y: -20px;
}

.tqfav-particles span:nth-child(3) {
    --x: -28px;
    --y: 2px;
}

.tqfav-particles span:nth-child(4) {
    --x: 28px;
    --y: 2px;
}

.tqfav-particles span:nth-child(5) {
    --x: -16px;
    --y: 24px;
}

.tqfav-particles span:nth-child(6) {
    --x: 16px;
    --y: 24px;
}

@keyframes tqfavParticleBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.8);
    }
}