/* Rankings Table Styles */
.gt-top-feature-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .gt-top-feature-image img {
        max-width: 100%;
    }
}

.gt-rankings-section {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1624 100%);
    padding: 60px 0;
}
.rankings-label {
    margin-bottom: 20px;
}
.rankings-table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.rankings-table thead th {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4f7a 100%);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 18px 20px;
    border: none;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.rankings-table thead th.rating-column {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #0a0e1a;
    font-weight: 800;
    text-shadow: none;
}
.rankings-table tbody tr {
    background: rgba(15, 22, 36, 0.6);
    border-bottom: 1px solid rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
}
.rankings-table tbody tr:hover {
    background: rgba(30, 58, 95, 0.4);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}
.rankings-table tbody td {
    color: #e0f2ff;
    padding: 18px 20px;
    border: none;
    font-size: 15px;
    vertical-align: middle;
    font-weight: 500;
}
.rankings-table tbody td.rating-value {
    color: #00d4ff !important;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.rankings-table .flag-icon {
    margin-right: 8px;
    font-size: 18px;
}
.rankings-table .text-success {
    color: #4ade80 !important;
    font-weight: 600;
}
.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4f7a 100%);
    border: 2px solid #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}
.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rankings Filter Styles */
.rankings-filters {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(15, 22, 36, 0.9) 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rankings-filter-select,
.rankings-search-input {
    background: rgba(15, 22, 36, 0.8) !important;
    background-color: rgba(15, 22, 36, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    color: #e0f2ff !important;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-select.rankings-filter-select {
    background: rgba(15, 22, 36, 0.8) !important;
    background-color: rgba(15, 22, 36, 0.8) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    color: #e0f2ff !important;
}

.rankings-filter-select:focus,
.rankings-search-input:focus {
    background: rgba(15, 22, 36, 0.95) !important;
    background-color: rgba(15, 22, 36, 0.95) !important;
    border-color: #00d4ff !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.4) !important;
}

.form-select.rankings-filter-select:focus {
    background: rgba(15, 22, 36, 0.95) !important;
    background-color: rgba(15, 22, 36, 0.95) !important;
    border-color: #00d4ff !important;
    color: #ffffff !important;
}

.rankings-filter-select option {
    background: rgba(15, 22, 36, 0.95) !important;
    background-color: rgba(15, 22, 36, 0.95) !important;
    color: #e0f2ff !important;
    padding: 10px;
}

/* Dropdown menu styling for all browsers */
.rankings-filter-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px;
}

.rankings-filter-select::-ms-expand {
    display: none !important;
}

/* Ensure dropdown list is black */
select.rankings-filter-select option,
select.rankings-filter-select option:checked,
select.rankings-filter-select option:hover,
select.rankings-filter-select option:focus {
    background-color: rgba(15, 22, 36, 0.95) !important;
    background: rgba(15, 22, 36, 0.95) !important;
    color: #e0f2ff !important;
}

select.rankings-filter-select:focus option:checked {
    background-color: rgba(30, 58, 95, 0.8) !important;
    color: #00d4ff !important;
}

/* Override Bootstrap form-select styles */
.form-select.rankings-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-color: rgba(15, 22, 36, 0.8) !important;
    background: rgba(15, 22, 36, 0.8) !important;
}

/* Force dark blue background on select element */
select#roleFilter,
select.rankings-filter-select,
select.form-select.rankings-filter-select {
    background: rgba(15, 22, 36, 0.8) !important;
    background-color: rgba(15, 22, 36, 0.8) !important;
    color: #e0f2ff !important;
}

select#roleFilter option,
select.rankings-filter-select option,
select.form-select.rankings-filter-select option {
    background: rgba(15, 22, 36, 0.95) !important;
    background-color: rgba(15, 22, 36, 0.95) !important;
    color: #e0f2ff !important;
}

.rankings-search-input::placeholder {
    color: rgba(224, 242, 255, 0.5);
}

/* Additional styling for better visual appeal */
.rankings-label span {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.rankings-filters .form-label {
    color: #00d4ff !important;
    font-weight: 600;
}

/* Player Clickable Styles */
.player-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-clickable:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Player Modal Styles */
.player-modal .modal-dialog {
    max-width: 1000px;
}

.player-modal-content {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1624 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.player-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.player-modal-close:hover {
    background: #00d4ff;
    color: #0a0e1a;
    transform: rotate(90deg);
}

.player-modal-body {
    padding: 0;
}

.player-modal-left {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(15, 22, 36, 0.9) 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-modal-image-wrapper {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

.player-modal-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

.player-modal-right {
    padding: 40px;
    background: rgba(15, 22, 36, 0.95);
}

.player-modal-header {
    margin-bottom: 30px;
}

.player-modal-name {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.player-modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.player-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-info-label {
    font-size: 12px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.player-info-value {
    font-size: 16px;
    color: #e0f2ff;
    font-weight: 500;
}

.player-flag {
    font-size: 20px;
    margin-right: 5px;
}

.player-prize {
    color: #4ade80 !important;
    font-weight: 700;
}

.player-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.player-achievement-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0a0e1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.player-achievement-badge:nth-child(2) {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
}

.player-modal-stats {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}

.player-stats-header {
    margin-bottom: 20px;
}

.player-stats-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.player-stats-period {
    font-size: 14px;
    color: #00d4ff;
    font-weight: 400;
    margin-left: 10px;
}

.player-rating-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.player-rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-rating-label {
    font-size: 18px;
    color: #e0f2ff;
    font-weight: 600;
}

.player-rating-value {
    font-size: 32px;
    color: #00d4ff;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.player-skills-section {
    margin-top: 20px;
}

.player-skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-skill-label {
    font-size: 14px;
    color: #e0f2ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-skill-value {
    font-size: 14px;
    color: #00d4ff;
    font-weight: 700;
}

.player-skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.player-skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .player-modal-left {
        padding: 30px;
    }
    
    .player-modal-right {
        padding: 30px;
    }
    
    .player-modal-name {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .player-modal .modal-dialog {
        margin: 10px;
    }
    
    .player-modal-left {
        padding: 20px;
    }
    
    .player-modal-right {
        padding: 20px;
    }
    
    .player-modal-name {
        font-size: 28px;
    }
    
    .player-modal-info {
        flex-direction: column;
        gap: 15px;
    }
}

