/* Main deck container */
.user-deck {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0rem auto;
    perspective: 1000px;
    padding: 0;
}

/* User card styling */
.user-card {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
    padding: 0;
    margin: 0;
}

/* Profile image container - Cover version */
.profile-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: white;
    padding: 0;
    margin: 0;
}

/* User image styling - Cover version */
.user-card img, .profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    margin: 0;
}

/* Name overlay styling */
.user-card h3 {
    position: absolute;
    bottom: 50px;
    left: 20px;
    color: white !important;
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin: 0;
    z-index: 2;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-age {
    font-size: 1.2rem !important;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    padding-left: 5px;
}

.user-card .user-location {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white !important;
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0;
    z-index: 2;
    font-weight: 400;
    width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gradient overlay for name */
.user-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
    display: block !important;
    opacity: 1 !important;
}

/* Button container */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 8px !important;
    margin-top: 15px;
}

/* Base button styling */
.buttons-container button {
    padding: 12px 16px !important;
    border: none;
    border-radius: 100px !important;
    cursor: pointer;
    font-size: 1.2rem;
    min-width: 70px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button active state */
.buttons-container button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* No button styling */
.vote-no {
    background: linear-gradient(to right, #FF9EB5, #FF7A9A);
}

.vote-no:hover {
    background: linear-gradient(to right, #FF7A9A, #FF5C7F);
}

/* Yes button styling */
.vote-yes {
    background: linear-gradient(to right, #2EC4B6, #20A89A);
}

.vote-yes:hover {
    background: linear-gradient(to right, #20A89A, #1A8E82);
}

/* Undo and Direct Message buttons */
.undo-vote, .direct-message {
    background: linear-gradient(to right, #444444, #222222) !important;
    color: white !important;
}

.undo-vote:hover, .direct-message:hover {
    background: linear-gradient(to right, #222222, #111111);
}

/* Animation for card removal */
.user-card.hidden {
    opacity: 0;
    transform: translateY(-20px) rotate(5deg);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Emoji spacing in buttons */
.buttons-container button::before {
    margin-right: 8px;
    font-size: 1.3em;
}
/* MATCHES LIST STYLING */
.matches-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 1rem auto;
}

.matches-list li {
    padding: 15px 50px 15px 15px;
    margin: 15px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    position: relative;
}

.matches-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.match-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.match-photo-container {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    background: #f5f5f5;
}

.match-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.match-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.match-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.15em;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-country {
    font-size: 0.92em;
    color: #666;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-envelope {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #333333;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.match-envelope:hover {
    color: #c03732;
    transform: translateY(-50%) scale(1.1);
}

.match-envelope svg {
    width: 100%;
    height: 100%;
}

/* Avatar fallback styling */
.match-photo.avatar {
    object-fit: cover;
}
/* Potential matches slider */
.potential-matches-slider {
    margin-bottom: 2rem;
    padding: 0 15px;
}

.potential-matches-slider h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.slider-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Add this to your style.css */
.user-card-container {
    position: relative;
    width: 300px;
    margin: 0 auto;
    perspective: 1000px;
    padding-bottom: 20px;
}

.user-card-container .user-card {
    position: relative;
    margin-bottom: 15px;
}

.user-card-container .buttons-container {
    margin-top: 15px;
}

/* Add this to your style.css */
.buttons-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #dddddd !important;
    background-image: none !important;
}

.buttons-container button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* style.css - add these styles */
.user-card.out-of-users {
    background: #000 !important;
    color: white !important;
}

.user-card.out-of-users .profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.user-card.out-of-users h3,
.user-card.out-of-users p {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.user-card.out-of-users::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important;
}
