﻿.user-card {
    min-height: 200px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Available Days Section */
.available-days-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day-label {
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.day-available {
    color: #16a34a;
    font-weight: 600;
}

.day-unavailable {
    color: #9ca3af;
}

/* Mobile Horizontal Layout */
@media (max-width: 768px) {
    .user-card.card-container {
        max-width: 100% !important;
        flex-direction: column !important;
        min-height: auto !important;
        padding: 0 !important;
    }
    /* Hide gradient header on mobile */
    .user-card .relative.bg-gradient-to-r {
        display: none !important;
    }
    /* Restructure content layout */
    .user-card > div.px-5 {
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
        width: 100%;
        padding-top: 1.5rem !important;
    }
        /* Top section: Profile Image + User Info in 2 columns */
        .user-card > div.px-5 > div:first-child {
            flex-direction: row !important;
            gap: 1rem !important;
            align-items: flex-start !important;
        }
    /* Profile Image Container */
    .user-card .player-profile-picture {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        flex-shrink: 0;
        display: flex;
        align-self: center;
    }

        .user-card .player-profile-picture img {
            width: 60px !important;
            height: 60px !important;
            border-width: 2px !important;
        }
    /* User Info Column - Align Left */
    .user-info-section {
        align-items: flex-start !important;
        text-align: left !important;
        margin-top: 0 !important;
        flex: 1;
        min-width: 0;
        gap: 0.5rem !important;
        align-self: center;
    }

    .location-section {
        font-size: 1.4rem !important;
        justify-content: flex-start !important;
    }
    /* Available Days Section - Mobile Responsive */
    .available-days-container {
        justify-content: flex-start !important;
        gap: 0.5rem !important;
    }

    .user-card .tennis-ball {
        width: 24px !important;
        height: 24px !important;
    }

    .day-label {
        font-size: 0.75rem !important;
        margin-top: 0.125rem !important;
    }
}
