/* Tinder Widget */
.tinder-widget {
    width: 100%;
    grid-column: span 3;
    grid-row: span 2;
    justify-self: end;
    height: 80vh;
    background: linear-gradient(145deg, rgba(12, 20, 42, 0.85), rgba(16, 28, 56, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    backdrop-filter: blur(8px);
}

/* Card */
.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(8, 15, 30, 0.95);
    color: #eef3ff;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
}

.card-content {
    padding: 18px 18px 24px;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fdfaf5;
}

.card-content p {
    margin: 4px 0;
    color: rgba(238, 243, 255, 0.85);
}

.current-card {
    z-index: 2;
}

.next-card {
    z-index: 0;
}

/* Анимация свайпа */
.card.swipe-left {
    transform: translateX(-150%);
    opacity: 0;
}

.card.swipe-right {
    transform: translateX(150%);
    opacity: 0;
}

/* Card Image */
.card-image-container {
    width: 100%;
    height: 70%;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Card Actions (Buttons) */
.card-actions {
    position: absolute;
    bottom: 14px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 18px;
    gap: 14px;
    background: rgba(8, 15, 30, 0.8);
    border-radius: 14px;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.card-actions .btn {
    height: 60px;
    width: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    margin: 0 16px;
    border: 2px solid transparent;
    color: #e2e8f0;
}

.card-actions .btn:hover {
    transform: scale(1.08);
}

.card-actions .dislike {
    color: #ff7b7d;
    border-color: rgba(255, 123, 125, 0.5);
}

.card-actions .like {
    color: #7dffb4;
    border-color: rgba(125, 255, 180, 0.5);
}

.card-actions .refresh {
    color: #ffc861;
    border-color: rgba(255, 200, 97, 0.5);
}

@media (max-width: 768px) {
    .tinder-widget {
        height: 70vh;
    }

    .card-actions {
        gap: 10px;
        padding: 10px 14px;
    }

    .card-actions .btn {
        height: 52px;
        width: 52px;
        font-size: 20px;
        margin: 0 12px;
    }
}
