/* Contest Lobby Styles */
.fs-lobby-container {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header */
.fs-lobby-header {
    background: #3366cc;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fs-logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.fs-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fs-wallet {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fs-wallet-amount {
    font-weight: 700;
    font-size: 16px;
}

.fs-btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.fs-user-menu {
    position: relative;
}

.fs-username {
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.fs-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    color: #333;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 100;
}

.fs-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.fs-dropdown a:hover {
    background: #f5f5f5;
}

.fs-user-menu:hover .fs-dropdown {
    display: block;
}

/* Tabs */
.fs-lobby-tabs {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.fs-tab {
    padding: 15px 0;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.fs-tab.active {
    color: #3366cc;
    font-weight: 600;
}

.fs-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3366cc;
}

/* Filters */
.fs-lobby-filters {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.fs-filter-group {
    display: flex;
    gap: 10px;
}

.fs-filter {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

.fs-search {
    display: flex;
    gap: 5px;
}

.fs-search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.fs-btn-search {
    padding: 8px 20px;
    background: #3366cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Matches Grid */
.fs-matches-container {
    padding: 20px;
}

.fs-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.fs-match-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.fs-match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.fs-match-header {
    background: #f8f9fa;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.fs-match-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff6b6b;
    font-weight: 600;
}

.fs-match-sport {
    background: #3366cc;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.fs-match-teams {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fs-team {
    text-align: center;
    flex: 1;
}

.fs-team-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.fs-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-team-name {
    font-weight: 600;
    font-size: 14px;
}

.fs-vs {
    padding: 0 15px;
    color: #666;
    font-weight: 700;
}

.fs-match-details {
    padding: 0 15px 15px;
    border-bottom: 1px solid #eee;
}

.fs-match-info {
    margin-bottom: 15px;
}

.fs-match-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.fs-match-venue,
.fs-match-time {
    color: #666;
    font-size: 13px;
    margin-bottom: 3px;
}

.fs-match-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.fs-stat-label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 3px;
}

.fs-stat-value {
    display: block;
    font-weight: 700;
    color: #3366cc;
}

.fs-match-actions {
    padding: 15px;
}

.fs-teams-created {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.fs-action-buttons {
    display: flex;
    gap: 10px;
}

.fs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

.fs-btn-primary {
    background: #3366cc;
    color: white;
    flex: 1;
}

.fs-btn-primary:hover {
    background: #2952a3;
}

.fs-btn-outline {
    background: white;
    color: #3366cc;
    border: 1px solid #3366cc;
    flex: 1;
}

.fs-btn-outline:hover {
    background: #3366cc;
    color: white;
}

.fs-btn-success {
    background: #28a745;
    color: white;
}

.fs-btn-success:hover {
    background: #218838;
}

.fs-btn-block {
    width: 100%;
}

/* Empty State */
.fs-no-matches {
    text-align: center;
    padding: 50px 20px;
}

.fs-empty-state {
    max-width: 300px;
    margin: 0 auto;
}

.fs-empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

/* Modal */
.fs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.fs-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.fs-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fs-modal-title {
    margin: 0;
    font-size: 18px;
}

.fs-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.fs-modal-body {
    padding: 20px;
}

/* Add Funds */
.fs-add-funds {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fs-amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.fs-amount-option {
    padding: 15px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.fs-amount-option.selected {
    border-color: #3366cc;
    background: #e8f0fe;
    color: #3366cc;
}

.fs-custom-amount input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.fs-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fs-payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.fs-payment-method input[type="radio"]:checked + span {
    color: #3366cc;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .fs-lobby-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .fs-filter-group {
        flex-wrap: wrap;
    }
    
    .fs-filter {
        min-width: 120px;
        flex: 1;
    }
    
    .fs-search {
        width: 100%;
    }
    
    .fs-search-input {
        width: 100%;
    }
    
    .fs-matches-grid {
        grid-template-columns: 1fr;
    }
    
    .fs-user-info {
        gap: 10px;
    }
    
    .fs-wallet {
        font-size: 12px;
    }
}

/* Team Logo Styles */
.fs-team-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fs-team-logo-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Alternative: Using Font Awesome icons */
.fs-team-logo-icon {
    font-size: 28px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Team colors for specific teams */
.fs-team-india { background: linear-gradient(135deg, #3D5B99 0%, #1E3A8A 100%); }
.fs-team-australia { background: linear-gradient(135deg, #FDB913 0%, #00843D 100%); }
.fs-team-england { background: linear-gradient(135deg, #C8102E 0%, #FFFFFF 50%, #C8102E 100%); }
.fs-team-new-zealand { background: linear-gradient(135deg, #000000 0%, #FFFFFF 50%, #000000 100%); }
.fs-team-south-africa { background: linear-gradient(135deg, #007749 0%, #000000 33%, #FFB81C 66%, #E03C31 100%); }

/* IPL Teams */
.fs-team-mumbai-indians { background: linear-gradient(135deg, #004BA0 0%, #D1AB3E 100%); }
.fs-team-chennai-super-kings { background: linear-gradient(135deg, #FFFF3C 0%, #008000 100%); }
.fs-team-royal-challengers-bangalore { background: linear-gradient(135deg, #EC1C24 0%, #000000 100%); }
.fs-team-kolkata-knight-riders { background: linear-gradient(135deg, #3A225D 0%, #F7B32D 100%); }

/* Football Clubs */
.fs-team-manchester-united { background: linear-gradient(135deg, #DA291C 0%, #FBE122 100%); }
.fs-team-liverpool { background: linear-gradient(135deg, #C8102E 0%, #00B2A9 100%); }
.fs-team-real-madrid { background: linear-gradient(135deg, #FFFFFF 0%, #FEBE10 100%); border: 1px solid #ddd; }
.fs-team-barcelona { background: linear-gradient(135deg, #A50044 0%, #004D98 100%); }