/**
 * Custom CSS for Bankroll MLM Theme
 */

/* MLM Dashboard Styles */
.mlm-dashboard {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.mlm-dashboard h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mlm-stats-overview {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
}

.mlm-stats-card {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.mlm-stats-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

.rank-display {
    font-size: 24px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 10px;
}

.earnings-info p, .referral-info p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.earnings-info p span, .referral-info p span {
    font-weight: bold;
    color: #555;
}

.mlm-actions {
    margin-bottom: 30px;
}

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

.mlm-action-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mlm-action-btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

.mlm-referral-tree {
    margin-bottom: 30px;
}

.network-placeholder {
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    padding: 40px;
    text-align: center;
    border-radius: 4px;
}

.mlm-commission-info {
    margin-top: 30px;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
}

.commission-table th, .commission-table td {
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
}

.commission-table thead {
    background-color: #f2f2f2;
}

.commission-table th {
    font-weight: bold;
    text-align: left;
}

.mlm-error-message {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
}

/* Betting Events Styles */
.betting-events-container {
    margin-bottom: 30px;
}

.betting-events-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.betting-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

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

.betting-card-header {
    background-color: #2c3e50;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-date {
    font-weight: bold;
}

.event-category {
    background-color: #3498db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.betting-card h3 {
    padding: 15px;
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

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

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
}

.team-logo img {
    width: 100%;
    height: auto;
}

.placeholder-logo {
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-logo span {
    font-size: 24px;
    font-weight: bold;
    color: #555;
}

.versus {
    font-weight: bold;
    color: #e74c3c;
    margin: 0 10px;
}

.team-name {
    font-weight: bold;
    text-align: center;
}

.betting-odds {
    display: flex;
    border-top: 1px solid #eee;
}

.odds-block {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-right: 1px solid #eee;
}

.odds-block:last-child {
    border-right: none;
}

.odds-label {
    display: block;
    font-size: 0.8em;
    margin-bottom: 5px;
    color: #777;
}

.odds-value {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #2c3e50;
}

.bet-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bet-button:hover {
    background-color: #219653;
}

.event-details {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.more-details-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.more-details-link:hover {
    text-decoration: underline;
}

.no-events-message {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mlm-stats-overview {
        flex-direction: column;
    }
    
    .mlm-stats-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .betting-events-list {
        grid-template-columns: 1fr;
    }
    
    .betting-odds {
        flex-direction: column;
    }
    
    .odds-block {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .odds-block:last-child {
        border-bottom: none;
    }
}
