/* ================================
   FIND MATCH PAGE STYLES
   ================================ */

.find-match-page {
    background: var(--slate-50);
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Match Container */
.match-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

@media (min-width: 640px) {
    .match-container {
        padding: 2rem 1.5rem 0;
    }
}

@media (min-width: 1024px) {
    .match-container {
        padding: 2rem 2rem 0;
    }
}

/* Match Layout */
.match-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .match-layout {
        grid-template-columns: 300px 1fr;
    }
}

/* Sidebar */
.match-sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .match-sidebar-sticky {
        position: sticky;
        top: 6rem;
    }
}

.match-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.match-header-icon {
    padding: 0.5rem;
    background: var(--dsn-blue);
    color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(49, 125, 190, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dsn-dark);
    letter-spacing: -0.025em;
}

.match-menu {
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    overflow: hidden;
}

.match-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.match-menu-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.match-menu-content svg {
    flex-shrink: 0;
}

.match-menu-content span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-menu-item {
    color: var(--slate-500);
}

.match-menu-item:hover {
    background: var(--slate-50);
}

.match-menu-item.active {
    background: var(--dsn-blue);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(49, 125, 190, 0.3);
}

.match-menu-item:nth-child(2).active {
    background: var(--dsn-green);
    box-shadow: 0 4px 6px -1px rgba(71, 164, 75, 0.3);
}

.match-menu-item:nth-child(3).active {
    background: var(--dsn-pink);
    box-shadow: 0 4px 6px -1px rgba(233, 30, 99, 0.3);
}

.match-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 9999px;
}

.match-menu-item:not(.active) .match-badge {
    background: var(--slate-100);
    color: var(--slate-500);
}

/* Tip Card */
.match-tip-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(205, 220, 57, 0.1);
    border: 1px solid rgba(205, 220, 57, 0.2);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.match-tip-bg {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    color: rgba(205, 220, 57, 0.2);
    width: 128px;
    height: 128px;
}

.match-tip-title {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dsn-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

.match-tip-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-600);
    line-height: 1.6;
    position: relative;
    z-index: 10;
}

/* Profile Toggle Card */
.profile-toggle-card {
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-toggle-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.profile-toggle-icon {
    padding: 0.5rem;
    border-radius: 9999px;
    background: var(--slate-100);
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.profile-toggle-icon.active {
    background: rgba(71, 164, 75, 0.1);
    color: var(--dsn-green);
}

.profile-toggle-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--dsn-dark);
}

.profile-toggle-text-full {
    display: none;
}

@media (min-width: 640px) {
    .profile-toggle-text-full {
        display: block;
    }

    .profile-toggle-text-short {
        display: none;
    }
}

.profile-toggle-btn {
    transition: all 0.3s ease;
}

.toggle-icon {
    transition: all 0.3s ease;
}

.toggle-on {
    color: var(--dsn-green);
}

.toggle-off {
    color: var(--slate-300);
}

/* Content */
.match-content {
    animation: fadeIn 0.5s ease;
}

.match-tab-content {
    display: none;
}

.match-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: var(--dsn-dark);
    margin-bottom: 1.5rem;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* User Card */
.user-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    position: relative;
    flex-shrink: 0;
}

.user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid var(--slate-100);
}

.user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: 2px solid var(--white);
}

.user-status.online {
    background: var(--dsn-green);
}

.user-status.offline {
    background: var(--slate-300);
}

.user-details h4 {
    font-size: 14px;
    font-weight: 900;
    color: var(--dsn-dark);
    margin-bottom: 4px;
}

.user-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4px;
}

.user-sport-tag {
    padding: 4px 8px;
    border-radius: 0.375rem;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-sport-tag.soccer {
    background: rgba(49, 125, 190, 0.1);
    color: var(--dsn-blue);
}

.user-sport-tag.pickleball {
    background: rgba(233, 30, 99, 0.1);
    color: var(--dsn-pink);
}

.user-skill {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--dsn-yellow);
}

.user-skill svg {
    width: 10px;
    height: 10px;
    fill: var(--dsn-yellow);
}

.user-skill span {
    font-size: 10px;
    font-weight: 700;
}

.user-distance {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-400);
    background: var(--slate-50);
    padding: 6px 8px;
    border-radius: 0.5rem;
}

.user-distance svg {
    width: 10px;
    height: 10px;
}

.user-bio {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-500);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* .user-bio quotes removed */

.user-card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--slate-50);
}

.btn-invite {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-invite:not(:disabled) {
    background: var(--dsn-dark);
    color: var(--white);
}

.btn-invite:not(:disabled):hover {
    background: var(--dsn-blue);
    transform: scale(1.02);
}

.btn-invite:disabled {
    background: var(--slate-100);
    color: var(--slate-400);
    cursor: not-allowed;
}

.user-card:hover .btn-invite:not(:disabled) {
    transform: scale(1.02);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-100);
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--slate-50);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-300);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-500);
}