/**
 * Responsive fixes for Ludo Tournament
 * Addresses balance display cutoff and other responsive issues
 */

/* Balance display responsive fixes */
.balance-button {
    max-width: 100%;
    overflow: hidden;
}

.balance-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-amount {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 425px) {
    .balance-button {
        padding: 0.5rem 1rem;
        max-width: 150px;
    }
    
    .balance-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .balance-amount {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .balance-button {
        padding: 0.5rem 0.75rem;
        max-width: 130px;
    }
    
    .balance-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .balance-amount {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .balance-button {
        padding: 0.4rem 0.6rem;
        max-width: 110px;
    }
    
    .balance-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        margin-right: 0.4rem;
    }
    
    .balance-amount {
        font-size: 0.7rem;
    }
}

/* User profile card responsive fixes */
.user-profile-card {
    overflow: hidden;
}

.user-profile-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.user-info {
    flex: 1;
    min-width: 0; /* Important for text overflow to work */
    overflow: hidden;
}

.user-name, .user-phone {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lobby banner image styles */
.lobby-banner-container {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.lobby-banner {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lobby-banner:hover {
    transform: scale(1.02);
}

/* Wallet balance display fixes */
.wallet-balance-value {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 425px) {
    .wallet-balance-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .wallet-balance-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .wallet-balance-value {
        font-size: 0.7rem;
    }
}
