/**
 * Social Board Styles
 */

/* Main Social Board Container */
.pool-tracker-social-board {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.social-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.social-board-header h2 {
    margin: 0;
    font-size: 28px;
}

.social-board-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #4CAF50;
}

.filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Social Board Content Layout */
.social-board-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .social-board-content {
        grid-template-columns: 1fr;
    }
    
    .social-board-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Activity Feed */
.activity-feed-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#pool-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.activity-type {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-time {
    color: #666;
    font-size: 13px;
}

.activity-content {
    margin: 15px 0;
    line-height: 1.6;
}

.activity-content strong {
    color: #4CAF50;
}

.activity-reactions {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.reaction-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.reaction-btn.reacted {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.reaction-count {
    font-weight: 600;
    color: #333;
}

/* Widget Styles */
.social-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.social-widget h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.social-widget .no-data {
    color: #999;
    font-style: italic;
    margin: 10px 0;
}

/* Featured Rivalries */
.pool-tracker-h2h-featured {
    margin: 30px 0;
}

.rivalries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rivalry-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #ff4444;
    transition: transform 0.2s ease;
}

.rivalry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rivalry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-name {
    font-weight: 600;
    font-size: 16px;
}

.player-elo {
    color: #666;
    font-size: 13px;
}

.vs-text {
    font-weight: bold;
    color: #999;
    font-size: 14px;
}

.rivalry-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.intensity-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.intensity-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ff9800, #f44336);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.milestones {
    flex-wrap: wrap;
}

.milestone-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.view-h2h-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.view-h2h-link:hover {
    text-decoration: underline;
}

/* Quick Game Form */
.pool-tracker-quick-game {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 20px 0;
}

.quick-game-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    font-size: 14px;
}

.form-row select,
.form-row input[type="number"] {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-container input {
    width: 60px;
    text-align: center;
}

.score-separator {
    font-weight: bold;
    font-size: 18px;
}

.quick-game-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.quick-game-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4CAF50;
}

.quick-game-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Rivalry Rankings */
.rivalries-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rivalry-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
}

.rivalry-rank {
    font-weight: bold;
    color: #4CAF50;
    min-width: 20px;
}

.rivalry-players {
    flex: 1;
}

.rivalry-meta {
    display: flex;
    gap: 10px;
    color: #666;
}

.intensity-score {
    font-weight: 600;
    color: #ff4444;
}

.rivalry-record {
    font-weight: 600;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Challenges/Grudge Matches */
.pool-tracker-grudge-matches {
    margin: 30px 0;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.challenge-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #ff9800;
}

.challenge-card.challenge-pending {
    border-left-color: #ff9800;
}

.challenge-card.challenge-active {
    border-left-color: #f44336;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.challenge-vs {
    font-weight: bold;
    color: #999;
}

.challenge-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.detail-item {
    font-size: 14px;
}

.challenge-score {
    font-weight: bold;
    font-size: 18px;
    color: #4CAF50;
}

.challenge-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.challenge-cta {
    text-align: center;
    margin-top: 30px;
}

/* Availability Board */
.pool-tracker-availability-board {
    min-height: 200px;
}

.availability-section {
    margin-bottom: 20px;
}

.section-header {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 14px;
}

.available-players,
.scheduled-availability {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-available {
    background: #4CAF50;
}

.until-time {
    color: #666;
    font-size: 12px;
}

.time-slot {
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
}

.no-players {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Quick Actions */
.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateX(4px);
}

/* Week Stats */
.week-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* Button Styles */
.pool-tracker-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.pool-tracker-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.pool-tracker-btn-primary {
    background: #4CAF50;
}

.pool-tracker-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-accept {
    background: #4CAF50;
}

.btn-decline {
    background: #f44336;
}

.btn-record {
    background: #2196F3;
}

.pool-tracker-btn-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.pool-tracker-btn-link:hover {
    text-decoration: underline;
}

/* Loading States */
.activity-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .social-board-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rivalries-grid {
        grid-template-columns: 1fr;
    }
    
    .rivalry-header {
        flex-direction: column;
        text-align: center;
    }
    
    .challenge-header {
        flex-direction: column;
    }
    
    .score-container {
        justify-content: center;
    }
}
