/* Phase B Features Styles */

/* Social Mode */
.social-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.social-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-tab:hover {
    background: #f5f5f5;
}

.social-tab.active {
    border-bottom-color: #667eea;
    color: #667eea;
}

.social-content {
    position: relative;
    min-height: 400px;
}

.social-panel {
    display: none;
    padding: 20px 0;
}

.social-panel.active {
    display: block;
}

.friends-list, .clubs-list, .coaching-list, .messages-list {
    margin: 20px 0;
}

.friend-item, .club-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: box-shadow 0.3s ease;
}

.friend-item:hover, .club-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.friend-name {
    font-weight: bold;
    font-size: 1.1em;
}

.friend-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.friend-status.online {
    background: #d4edda;
    color: #155724;
}

.friend-status.offline {
    background: #f8d7da;
    color: #721c24;
}

.friend-rating {
    font-weight: bold;
    color: #667eea;
}

.club-item {
    flex-direction: column;
    align-items: flex-start;
}

.club-item h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.club-item p {
    margin: 0 0 8px 0;
    color: #666;
}

.club-members {
    font-size: 0.9em;
    color: #888;
}

/* Tournaments Mode */
.tournaments-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tournaments-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
}

.tournaments-list {
    margin-top: 30px;
}

.tournaments-list h3 {
    margin-bottom: 20px;
    color: #333;
}

.tournament-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tournament-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.tournament-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tournament-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-upcoming {
    background: #fff3cd;
    color: #856404;
}

.tournament-players {
    color: #666;
    font-size: 0.9em;
}

/* Analytics Mode */
.analytics-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.metric-card h3 {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
}

.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

.chart-placeholder {
    height: 300px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
    border-radius: 8px;
}

.opening-stat {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.opening-stat:last-child {
    border-bottom: none;
}

/* Common Button Styles */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-tabs {
        flex-direction: column;
    }
    
    .tournaments-stats,
    .analytics-overview {
        grid-template-columns: 1fr;
    }
    
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .tournament-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chart-container {
        padding: 15px;
    }
}