/**
 * Top Players Widget Styling
 * Modern, responsive layout for rankings display
 */

/* Widget container */
.gc-top-players-widget {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gc-top-players-widget:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Widget header */
.gc-top-players-widget .gc-widget-header {
    display: flex;
    align-items: center;
    background: #f39c12;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    padding: 14px 18px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.gc-top-players-widget .gc-widget-header i {
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
}

.gc-top-players-widget .gc-widget-header:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg) translateX(70%);
}

.gc-top-players-widget .gc-widget-title {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Widget content */
.gc-top-players-widget .gc-widget-content {
    padding: 15px;
}

/* Player list */
.gc-player-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual player item */
.gc-player-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.gc-player-item:last-child {
    border-bottom: none;
}

.gc-player-item:hover {
    background: rgba(243, 156, 18, 0.05);
    transform: translateY(-2px);
}

/* Rank styling */
.gc-player-rank {
    flex: 0 0 30px;
    font-size: 18px;
    font-weight: 700;
    color: #f39c12;
    text-align: center;
}

.gc-player-item:nth-child(1) .gc-player-rank {
    color: #f1c40f;
}

.gc-player-item:nth-child(2) .gc-player-rank {
    color: #95a5a6;
}

.gc-player-item:nth-child(3) .gc-player-rank {
    color: #d35400;
}

/* Player avatar */
.gc-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 12px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #f1f1f1;
}

.gc-player-item:hover .gc-player-avatar {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    border-color: #f39c12;
}

/* Special styling for top 3 avatars */
.gc-player-item:nth-child(1) .gc-player-avatar {
    border-color: #f1c40f;
    width: 60px;
    height: 60px;
}

.gc-player-item:nth-child(2) .gc-player-avatar {
    border-color: #95a5a6;
    width: 55px;
    height: 55px;
}

.gc-player-item:nth-child(3) .gc-player-avatar {
    border-color: #d35400;
    width: 55px;
    height: 55px;
}

/* Player info section */
.gc-player-info {
    flex-grow: 1;
    overflow: hidden;
}

.gc-player-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-player-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gc-player-name a:hover {
    color: #f39c12;
}

.gc-player-stats {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
}

.gc-player-score {
    color: #333;
    font-weight: 600;
    margin-right: 10px;
}

.gc-player-value {
    background: #f39c12;
    color: #fff;
    padding: 2px 6px;
    border-radius: 15px;
    font-size: 11px;
    margin-left: 5px;
    font-weight: 600;
}

/* Widget footer */
.gc-widget-footer {
    margin-top: 15px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.gc-btn-link {
    display: inline-block;
    padding: 8px 15px;
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.gc-btn-link:hover {
    background: #f39c12;
    color: #fff;
}

.gc-btn-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.gc-btn-link:hover i {
    transform: translateX(3px);
}

/* No results message */
.gc-no-results {
    padding: 15px;
    text-align: center;
    color: #777;
    font-style: italic;
}

/* Compact players mode */
.gc-compact-players {
    margin-bottom: 25px;
}

.gc-compact-players .gc-widget-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.gc-compact-players .gc-widget-header i {
    font-size: 16px;
    color: #f39c12;
    margin-right: 8px;
}

.gc-compact-players .gc-widget-header h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Compact player list */
.gc-compact-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-compact-player-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.gc-compact-player-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.gc-compact-player-rank {
    flex: 0 0 20px;
    font-weight: 700;
    color: #f39c12;
    font-size: 14px;
}

.gc-compact-player-item:nth-child(1) .gc-compact-player-rank {
    color: #f1c40f;
}

.gc-compact-player-item:nth-child(2) .gc-compact-player-rank {
    color: #95a5a6;
}

.gc-compact-player-item:nth-child(3) .gc-compact-player-rank {
    color: #d35400;
}

.gc-compact-player-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0 10px;
    object-fit: cover;
    border: 2px solid #f1f1f1;
}

.gc-compact-player-info {
    flex: 1;
    overflow: hidden;
}

.gc-compact-player-name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-compact-player-value {
    font-size: 11px;
    color: #888;
}

.gc-compact-view-all {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: #f8f8f8;
    color: #f39c12;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.gc-compact-view-all:hover {
    background: #f39c12;
    color: #fff;
}

.gc-empty-message {
    padding: 10px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .gc-top-players-widget .gc-widget-header {
        padding: 12px 15px;
    }
    
    .gc-top-players-widget .gc-widget-title {
        font-size: 14px;
    }
    
    .gc-top-players-widget .gc-widget-content {
        padding: 10px;
    }
    
    .gc-player-avatar {
        width: 40px;
        height: 40px;
        margin: 0 8px;
    }
    
    .gc-player-item:nth-child(1) .gc-player-avatar {
        width: 45px;
        height: 45px;
    }
    
    .gc-player-name {
        font-size: 14px;
    }
    
    .gc-player-stats {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gc-player-avatar {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    
    .gc-player-item:nth-child(1) .gc-player-avatar {
        width: 40px;
        height: 40px;
    }
    
    .gc-player-name {
        font-size: 13px;
    }
    
    .gc-player-stats {
        flex-direction: column;
        align-items: flex-start;
        font-size: 11px;
    }
    
    .gc-player-value {
        margin-top: 2px;
        margin-left: 0;
    }
}