/**
 * SMC Affiliate COACH Public Styles
 */

/* Leaderboard */
.smc-affiliate-leaderboard-container {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.smc-affiliate-leaderboard-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.smc-affiliate-leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.smc-affiliate-leaderboard-tab {
    padding: 10px 20px;
    margin: 0 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smc-affiliate-leaderboard-tab:hover {
    background: #e9e9e9;
}

.smc-affiliate-leaderboard-tab.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.smc-affiliate-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.smc-affiliate-leaderboard-table th {
    background: #f9f9f9;
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.smc-affiliate-leaderboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.smc-affiliate-leaderboard-table tr:hover {
    background-color: #f5f5f5;
}

.smc-affiliate-leaderboard-table tr:last-child td {
    border-bottom: none;
}

.smc-affiliate-leaderboard-coach {
    display: flex;
    align-items: center;
}

.smc-affiliate-leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.smc-affiliate-leaderboard-coach-info {
    flex: 1;
}

.smc-affiliate-leaderboard-coach-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.smc-affiliate-leaderboard-coach-meta {
    color: #666;
    font-size: 14px;
}

.smc-affiliate-leaderboard-rank {
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    width: 40px;
}

.smc-affiliate-rank-top {
    background: #FFD700;
    color: #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.smc-affiliate-rank-top.rank-2 {
    background: #C0C0C0;
}

.smc-affiliate-rank-top.rank-3 {
    background: #CD7F32;
}

.smc-affiliate-leaderboard-stats {
    text-align: center;
}

.smc-affiliate-leaderboard-stats-value {
    font-weight: bold;
    font-size: 18px;
}

.smc-affiliate-leaderboard-stats-label {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.smc-affiliate-rank-change {
    font-size: 14px;
    width: 30px;
    text-align: center;
}

.smc-affiliate-rank-change.up {
    color: #4CAF50;
}

.smc-affiliate-rank-change.down {
    color: #F44336;
}

.smc-affiliate-rank-change.same {
    color: #999;
}

.smc-affiliate-achievements {
    display: flex;
    gap: 5px;
}

.smc-affiliate-achievement {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    cursor: help;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smc-affiliate-achievement:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.smc-achievement-icon {
    line-height: 1;
}

.smc-achievement-more {
    background-color: #34495e !important;
    color: #fff;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .smc-affiliate-leaderboard-table {
        display: block;
        overflow-x: auto;
    }
    
    .smc-affiliate-leaderboard-tabs {
        flex-wrap: wrap;
    }
    
    .smc-affiliate-leaderboard-tab {
        margin-bottom: 5px;
    }
}

/* CSS cho các thành phần Coach Profile */
.smc-coach-profile-wrapper {
    margin-bottom: 40px;
}

.smc-coach-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.smc-coach-profile-avatar {
    margin-right: 30px;
    flex-shrink: 0;
}

.smc-coach-profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.smc-coach-profile-name {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 28px;
    color: #333;
}

.smc-coach-profile-description {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.smc-coach-profile-stats {
    display: flex;
    margin-top: 20px;
}

.smc-coach-stat {
    margin-right: 30px;
    text-align: center;
}

.smc-coach-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.smc-coach-stat-label {
    font-size: 14px;
    color: #777;
}

.smc-coach-top-links {
    margin-bottom: 40px;
}

.smc-coach-top-links h2 {
    margin-bottom: 20px;
}

.smc-coach-links-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.smc-coach-links-table th,
.smc-coach-links-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.smc-coach-links-table th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.smc-coach-connect-section {
    margin-bottom: 40px;
}

.smc-coach-social-links {
    display: flex;
    margin-bottom: 15px;
}

.smc-coach-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: #f5f5f5;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.smc-coach-social-links a:hover {
    background-color: #333;
    color: white;
}

.smc-coach-email a {
    color: #0073aa;
    text-decoration: none;
}

.smc-coach-email a:hover {
    text-decoration: underline;
}

/* Tương thích với Elementor */
.elementor-widget-container .smc-coach-profile-wrapper {
    max-width: 100%;
    padding: 0;
}

/* CSS phản hồi */
@media (max-width: 768px) {
    .smc-coach-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .smc-coach-profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .smc-coach-profile-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .smc-coach-social-links {
        justify-content: center;
    }
    
    .smc-coach-email {
        text-align: center;
    }
}

/* CSS cho Achievement trong trang profile coach */
.smc-coach-achievements {
    margin-bottom: 40px;
}

.smc-coach-achievements h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

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

.smc-coach-achievement {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 15px;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.smc-coach-achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.smc-coach-achievement-details {
    flex: 1;
}

.smc-coach-achievement-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.smc-coach-achievement-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.smc-coach-achievement-date {
    font-size: 12px;
    color: #999;
}

@media (max-width: 768px) {
    .smc-coach-achievements-list {
        grid-template-columns: 1fr;
    }
} 