/* Analytics Dashboard Styles */

.analytics-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboard-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.dashboard-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Enhanced Stat Card Variants */
.stat-card.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.metric-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.metric-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.metric-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Popularity Grid */
.popularity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.popularity-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.popularity-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.popularity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popularity-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.popularity-item:hover {
    background: #f3f4f6;
}

.popularity-item .rank {
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 15px;
}

.popularity-item .name {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.popularity-item .count {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Trends Grid */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trend-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.trend-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.trend-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.trend-label {
    font-weight: 500;
    color: #374151;
}

.trend-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.trend-value.positive {
    color: #10b981;
}

.trend-value.negative {
    color: #ef4444;
}

/* Health Grid */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.health-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.health-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.health-indicator {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.health-indicator.online {
    color: #10b981;
}

.health-indicator.offline {
    color: #ef4444;
}

.health-indicator.warning {
    color: #f59e0b;
}

.health-details {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Enhanced Action Buttons */
.action-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
}

.action-button.secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.action-button.secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* No Data States */
.no-data {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
}

/* Leaderboard Fallback */
.leaderboard-fallback {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.leaderboard-fallback h3 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.leaderboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.leaderboard-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.leaderboard-row:hover {
    background: #f9fafb;
}

.leaderboard-row:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.rank {
    font-weight: 600;
    color: #3b82f6;
    text-align: center;
}

.player {
    font-weight: 500;
    color: #374151;
}

.wins, .plays, .rate {
    text-align: center;
    color: #6b7280;
}

.leaderboard-note {
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 600px;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 600px;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Chart Renderer Styles */
.chart-container {
    position: relative;
    overflow: visible;
}

.chart-wrapper {
    background: white;
    border-radius: 10px;
    overflow: visible;
    min-height: 550px;
    position: relative;
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 15px 0;
    padding: 20px 20px 0 20px;
}

.chart-description {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 15px 0;
    padding: 0 20px;
    line-height: 1.5;
}

.chart-insight {
    font-size: 0.9rem;
    color: #059669;
    margin: 15px 20px 0 20px;
    padding: 15px 20px;
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    border-radius: 0 8px 8px 0;
    position: relative;
    z-index: 1;
}

.chart-content {
    padding: 0 20px 20px 20px;
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #6b7280;
    font-size: 1.1rem;
}

.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #ef4444;
    font-size: 1.1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

/* SVG Chart Styles */
.chart-area {
    font-family: 'Inter', sans-serif;
}

.bar {
    transition: opacity 0.3s ease;
}

.bar:hover {
    opacity: 0.8;
}

.bar-label {
    font-size: 12px;
    fill: #6b7280;
    font-weight: 500;
}

.bar-value {
    font-size: 11px;
    fill: #374151;
    font-weight: 600;
}

.pie-slice {
    transition: transform 0.3s ease;
}

.pie-slice:hover {
    transform: scale(1.05);
}

.slice-label {
    font-size: 12px;
    fill: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scatter-point {
    transition: transform 0.3s ease;
}

.scatter-point:hover {
    transform: scale(1.2);
}

.point-label {
    font-size: 11px;
    fill: #374151;
    font-weight: 500;
}

/* Heatmap Styles */
.heatmap-cell {
    transition: opacity 0.3s ease;
}

.heatmap-cell:hover {
    opacity: 0.8;
    stroke-width: 2;
}

.heatmap-label {
    font-size: 12px;
    fill: #6b7280;
    font-weight: 500;
}

.heatmap-area {
    font-family: 'Inter', sans-serif;
}

/* Stacked Bar Chart Styles */
.stacked-segment {
    transition: opacity 0.3s ease;
}

.stacked-segment:hover {
    opacity: 0.8;
}

.stacked-segment .bar-segment {
    transition: fill 0.3s ease;
}

.game-name {
    font-size: 10px;
    fill: #374151;
    font-weight: 500;
    dominant-baseline: middle;
}

.play-count {
    font-size: 9px;
    fill: #6b7280;
    font-weight: 400;
    dominant-baseline: middle;
}

.player-count-label {
    font-size: 12px;
    fill: #1f2937;
    font-weight: bold;
    dominant-baseline: middle;
}

/* Legend Styles */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-label {
    font-weight: 500;
}

.legend-value {
    font-weight: 600;
    color: #1f2937;
}

/* Loading and Error States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6b7280;
    font-size: 1.1rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #dc2626;
}

/* Quick Actions */
.actions-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.action-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .analytics-dashboard {
        padding: 10px;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .actions-grid {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.8rem;
    }
    
    .dashboard-header p {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .chart-title {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section {
    animation: fadeIn 0.6s ease-out;
}

.dashboard-section:nth-child(1) { animation-delay: 0.1s; }
.dashboard-section:nth-child(2) { animation-delay: 0.2s; }
.dashboard-section:nth-child(3) { animation-delay: 0.3s; }
.dashboard-section:nth-child(4) { animation-delay: 0.4s; }
.dashboard-section:nth-child(5) { animation-delay: 0.5s; }

/* Chart Placeholder Styles */
.radar-chart-placeholder,
.heatmap-chart-placeholder,
.generic-chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
}

.radar-chart-placeholder p,
.heatmap-chart-placeholder p,
.generic-chart-placeholder p {
    margin: 5px 0;
    font-size: 14px;
}

/* Custom Scrollbar */
.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Insight Cards */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.insight-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.insight-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.insight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.insight-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.insight-description {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    padding: 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

/* Enhanced Trend Cards */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trend-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trend-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #10b981;
}

.trend-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.trend-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.trend-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.trend-value.positive {
    color: #10b981;
}

/* Responsive adjustments for insight cards */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .trends-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-card,
    .trend-card {
        padding: 20px;
    }
    
    .insight-value {
        font-size: 1.3rem;
    }
    
    .trend-value {
        font-size: 1rem;
    }
}

/* Enhanced Analytics Components */

/* Venue Performance Grid */
.venue-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.venue-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.venue-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.venue-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.venue-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.venue-stats .label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.venue-stats .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* Game Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.game-recommendation-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.game-recommendation-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 20px;
    text-align: center;
}

.recommendation-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.recommendation-stats .label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.recommendation-stats .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* Gaming Communities Grid */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.community-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.community-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 20px;
    text-align: center;
}

.community-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.community-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.community-stats .label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.community-stats .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* Player Networking Grid */
.networking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.opponent-card {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border: 1px solid #c084fc;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opponent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.opponent-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 20px;
    text-align: center;
}

.opponent-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.opponent-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.opponent-stats .label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.opponent-stats .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-data p {
    font-size: 1.1rem;
    margin: 0;
}

/* Loading States */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-container p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive Design for Enhanced Components */
@media (max-width: 768px) {
    .venue-performance-grid,
    .recommendations-grid,
    .communities-grid,
    .networking-grid {
        grid-template-columns: 1fr;
    }
    
    .venue-card,
    .game-recommendation-card,
    .community-card,
    .opponent-card {
        padding: 20px;
    }
    
    .venue-card h3,
    .game-recommendation-card h3,
    .community-card h3,
    .opponent-card h3 {
        font-size: 1.1rem;
    }
}