/**
 * EVE ESI Manager - Leaderboards Styles
 * @since 1.0.0
 */

/* Leaderboards Container */
.eve-leaderboards-container {
    background: #000;
    border: none;
    border-radius: 8px;
    padding: 26px;
    margin: 20px 0;
    color: #e8e8e8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Tab Navigation */
.leaderboards-tabs {
    margin-top: 20px;
}

.tab-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #1a1d23;
    padding-bottom: 0;
}

.tab-nav li {
    margin: 0;
}

.tab-nav a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #8ca0c0;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    position: relative;
    bottom: -2px;
    background: transparent;
}

.tab-nav a:hover {
    color: #fff;
    background: #1a1d23;
}

.tab-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #12141c 0%, #1a1f2e 100%);
    border-bottom-color: #5a9de8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Leaderboard Section */
.leaderboard-section {
    margin-bottom: 20px;
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    background: #21252b;
    border-radius: 8px;
    border: 1px solid #2a2f38;
}

.leaderboard-controls label {
    font-weight: 500;
    color: #b0b0b0;
}

.leaderboard-controls select {
    padding: 8px 15px;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    font-size: 14px;
    background: #2a2f38;
    color: #fff;
    cursor: pointer;
}

.leaderboard-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-filter-group label {
    margin: 0;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #2a2f38;
    border: 1px solid #3a3f48;
    border-radius: 8px;
    overflow: hidden;
}

.leaderboard-table thead {
    background: transparent;
    color: #fff;
    border-bottom: 2px solid #3a3f48;
}

.leaderboard-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #12141c 0%, #1a1f2e 100%);
}

.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e8e8e8;
}

.leaderboard-table tbody tr {
    transition: background 0.2s;
}

.leaderboard-table tbody tr:hover {
    background: #333a45;
}

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

/* Column Sizing */
.rank-col {
    width: 80px;
    text-align: center;
}

.character-col {
    width: 55%;
}

.stat-col {
    width: 30%;
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    color: #5a9de8;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #21252b;
    color: #e8e8e8;
    font-weight: bold;
    font-size: 16px;
}

/* Special Rank Styling */
.rank-gold .rank-badge {
    background: linear-gradient(135deg, #f3c969 0%, #ffea8a 100%);
    color: #3b2603;
    box-shadow: 0 4px 8px rgba(255, 209, 102, 0.45);
    font-size: 18px;
}

.rank-silver .rank-badge {
    background: linear-gradient(135deg, #9aa9c0 0%, #d8e3ff 100%);
    color: #10141d;
    box-shadow: 0 4px 8px rgba(175, 191, 214, 0.35);
}

.rank-bronze .rank-badge {
    background: linear-gradient(135deg, #c86a2c 0%, #ffb076 100%);
    color: #2d1406;
    box-shadow: 0 4px 8px rgba(255, 176, 118, 0.4);
}

.rank-top10 {
    background: rgba(90, 157, 232, 0.08);
}

/* Character Info */
.leaderboard-table .character-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 32px;
}

.leaderboard-table .has-alts .character-info {
    padding-left: 0;
}

.leaderboard-table .character-info img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 2px solid #3a3f48;
    flex-shrink: 0;
}

.leaderboard-table .rank-gold .character-info img {
    border-color: #ffd700;
}

.leaderboard-table .rank-silver .character-info img {
    border-color: #c0c0c0;
}

.leaderboard-table .rank-bronze .character-info img {
    border-color: #cd7f32;
}

.leaderboard-table .character-info span {
    font-weight: 500;
    color: #fff;
    font-size: 15px;
}

.leaderboard-section.is-loading .leaderboard-table {
    opacity: 0.4;
    pointer-events: none;
}

.leaderboard-error {
    padding: 20px;
    text-align: center;
    color: #dc3545;
    font-weight: 600;
    background: #21252b;
}

/* Leaderboard Type Specific Styling */
.pvp-leaderboard .leaderboard-table th {
    background: linear-gradient(135deg, #1c1214 0%, #2a1518 100%);
}

.pvp-leaderboard .leaderboard-table th:first-child {
    border-left: 4px solid #dc3545;
}

.pvp-leaderboard .stat-col {
    color: #dc3545;
}

.pve-leaderboard .leaderboard-table th {
    background: linear-gradient(135deg, #0f1a15 0%, #1a2920 100%);
}

.pve-leaderboard .leaderboard-table th:first-child {
    border-left: 4px solid #28a745;
}

.pve-leaderboard .stat-col {
    color: #28a745;
}

.mining-leaderboard .leaderboard-table th {
    background: linear-gradient(135deg, #1a1410 0%, #2a2015 100%);
}

.mining-leaderboard .leaderboard-table th:first-child {
    border-left: 4px solid #ff9800;
}

.mining-leaderboard .stat-col {
    color: #ff9800;
}

/* Empty State */
.leaderboard-section p {
    text-align: center;
    padding: 32px 20px;
    color: #9ca3af;
    font-size: 16px;
    background: #21252b;
    border-radius: 8px;
    border: 1px dashed #3a3f48;
}

/* Character Expansion Styles */
.expand-chars {
    background: #2a2f38;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.expand-chars:hover {
    background: #333a45;
    border-color: #5a9de8;
    color: #5a9de8;
}

.expand-chars.expanded {
    background: #5a9de8;
    border-color: #5a9de8;
    color: #fff;
}

.expand-chars .expand-icon {
    display: block;
    line-height: 1;
}

.char-count-badge {
    display: inline-block;
    background: #2a2f38;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    border: 1px solid #3a3f48;
}

.has-alts .char-count-badge {
    background: rgba(90, 157, 232, 0.15);
    color: #5a9de8;
    border-color: rgba(90, 157, 232, 0.3);
}

/* Character Breakdown Row */
.character-breakdown {
    display: none;
    background: #1e2329 !important;
}

.character-breakdown:hover {
    background: #1e2329 !important;
}

.character-breakdown td {
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.breakdown-container {
    padding: 2px 20px 2px 60px;
    background: linear-gradient(90deg, rgba(90, 157, 232, 0.03) 0%, transparent 100%);
    border-left: 3px solid rgba(90, 157, 232, 0.3);
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1;
}

.breakdown-table thead {
    display: none !important;
}

.breakdown-table tbody tr {
    border-bottom: none;
    height: 26px;
}

.breakdown-table tbody tr:hover {
    background: rgba(90, 157, 232, 0.05) !important;
}

.breakdown-table td {
    padding: 1px 10px !important;
    border-bottom: 1px !important;
    vertical-align: middle;
}

.breakdown-char {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d0d0d0;
    line-height: 1;
}

.breakdown-char img {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    border: 1px solid #3a3f48;
    flex-shrink: 0;
}

.breakdown-char span {
    font-size: 12px;
    line-height: 1;
}

.breakdown-stat {
    text-align: right;
    font-weight: 600;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .leaderboard-table {
        font-size: 14px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 1px;
    }

    .leaderboard-table .character-info img {
        width: 40px;
        height: 40px;
    }

    .rank-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .leaderboard-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .leaderboard-controls select {
        width: 100%;
    }

    .leaderboard-filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .tab-nav {
        flex-wrap: wrap;
    }

    .tab-nav a {
        padding: 10px 16px;
        font-size: 14px;
    }

    .character-col {
        width: 65%;
    }

    .stat-col {
        width: 30%;
    }

    .leaderboard-table {
        font-size: 13px;
    }

    .leaderboard-table .character-info {
        gap: 8px;
    }

    .leaderboard-table .character-info img {
        width: 32px;
        height: 32px;
    }

    .leaderboard-table .character-info span {
        font-size: 14px;
    }

    .breakdown-container {
        padding: 2px 15px 2px 40px;
    }

    .breakdown-table {
        font-size: 11px;
    }

    .breakdown-table tbody tr {
        height: 24px;
    }

    .breakdown-char img {
        width: 22px;
        height: 22px;
    }

    .breakdown-char span {
        font-size: 11px;
    }

    .breakdown-stat {
        font-size: 11px;
    }

    .expand-chars {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .char-count-badge {
        font-size: 11px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .eve-leaderboards-container {
        padding: 15px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 8px;
    }

    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .rank-gold .rank-badge,
    .rank-silver .rank-badge,
    .rank-bronze .rank-badge {
        font-size: 14px;
    }

    .leaderboard-table .character-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stat-col {
        font-size: 14px;
    }

    .breakdown-container {
        padding: 2px 10px 2px 30px;
    }

    .breakdown-table {
        font-size: 10px;
    }

    .breakdown-table tbody tr {
        height: 22px;
    }

    .breakdown-char img {
        width: 20px;
        height: 20px;
    }

    .breakdown-char {
        gap: 5px;
    }

    .breakdown-char span {
        font-size: 10px;
    }

    .breakdown-stat {
        font-size: 10px;
    }

    .expand-chars {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 4px;
    }

    .char-count-badge {
        font-size: 10px;
        padding: 1px 5px;
        margin-left: 4px;
    }
}

/* Print Styles */
@media print {
    .leaderboard-controls,
    .tab-nav {
        display: none;
    }

    .tab-content {
        display: block !important;
    }

    .leaderboard-table {
        border: 1px solid #000;
    }

    .leaderboard-table thead {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .leaderboard-table tbody tr:hover {
        background: transparent;
    }

    .expand-chars {
        display: none !important;
    }

    .character-breakdown {
        display: table-row !important;
    }

    .breakdown-container {
        padding: 10px 15px;
        border-left: 2px solid #333;
    }
}

/* =========================================
   Members of the Month
   ========================================= */
.eve-members-of-month {
    margin: 20px 0;
}

.motm-header {
    text-align: center;
    margin-bottom: 30px;
}

.motm-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.motm-subtitle {
    font-size: 15px;
    color: #8ca0c0;
    margin: 0;
    font-weight: 400;
}

.motm-winners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.motm-winner-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #12141c 100%);
    border: 2px solid #3a3f48;
    border-radius: 12px;
    padding: 20px;
    padding-top: 25px;
    text-align: center;
    min-width: 160px;
    max-width: 200px;
    flex: 1 1 160px;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.motm-winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Category-specific colors */
.motm-winner-card.motm-pvp {
    border-color: #dc3545;
    background: linear-gradient(135deg, #2a1a1a 0%, #12141c 100%);
}

.motm-winner-card.motm-pvp:hover {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.motm-winner-card.motm-pve {
    border-color: #28a745;
    background: linear-gradient(135deg, #1a2a1a 0%, #12141c 100%);
}

.motm-winner-card.motm-pve:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.motm-winner-card.motm-mining {
    border-color: #ff9800;
    background: linear-gradient(135deg, #2a251a 0%, #12141c 100%);
}

.motm-winner-card.motm-mining:hover {
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.motm-winner-card.motm-industry {
    border-color: #9333ea;
    background: linear-gradient(135deg, #1f1a2a 0%, #12141c 100%);
}

.motm-winner-card.motm-industry:hover {
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

.motm-winner-card.motm-market {
    border-color: #5a9de8;
    background: linear-gradient(135deg, #1a1f2a 0%, #12141c 100%);
}

.motm-winner-card.motm-market:hover {
    box-shadow: 0 8px 25px rgba(90, 157, 232, 0.3);
}

.motm-category-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.motm-pvp .motm-category-badge {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    color: #fff;
}

.motm-pve .motm-category-badge {
    background: linear-gradient(135deg, #28a745 0%, #5dd879 100%);
    color: #fff;
}

.motm-mining .motm-category-badge {
    background: linear-gradient(135deg, #ff9800 0%, #ffb84d 100%);
    color: #1a1a1a;
}

.motm-industry .motm-category-badge {
    background: linear-gradient(135deg, #9333ea 0%, #b366f9 100%);
    color: #fff;
}

.motm-market .motm-category-badge {
    background: linear-gradient(135deg, #5a9de8 0%, #8ab8f0 100%);
    color: #fff;
}

.motm-portrait {
    width: 100px;
    height: 100px;
    margin: 5px auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3a3f48;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.motm-pvp .motm-portrait {
    border-color: #dc3545;
}

.motm-pve .motm-portrait {
    border-color: #28a745;
}

.motm-mining .motm-portrait {
    border-color: #ff9800;
}

.motm-industry .motm-portrait {
    border-color: #9333ea;
}

.motm-market .motm-portrait {
    border-color: #5a9de8;
}

.motm-portrait img {
    margin-top: -50px;
    width: 100%;
    height: 100%;
}

.motm-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
}

.motm-portrait.motm-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2f38;
}

.motm-portrait.motm-empty span {
    font-size: 48px;
    color: #5a5a5a;
    font-weight: 700;
}

.motm-info {
    margin-top: 8px;
}

.motm-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motm-score {
    font-size: 12px;
    color: #8ca0c0;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .motm-header {
        margin-bottom: 25px;
    }

    .motm-title {
        font-size: 24px;
    }

    .motm-subtitle {
        font-size: 14px;
    }

    .motm-winners-grid {
        gap: 15px;
    }

    .motm-winner-card {
        min-width: 140px;
        padding: 18px 15px;
    }

    .motm-portrait {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .motm-header {
        margin-bottom: 20px;
    }

    .motm-title {
        font-size: 20px;
    }

    .motm-subtitle {
        font-size: 13px;
    }

    .motm-winners-grid {
        gap: 12px;
    }

    .motm-winner-card {
        min-width: 120px;
        max-width: 160px;
        padding: 15px 12px;
    }

    .motm-portrait {
        width: 70px;
        height: 70px;
        margin: 12px auto 10px;
    }

    .motm-portrait.motm-empty span {
        font-size: 36px;
    }

    .motm-name {
        font-size: 12px;
    }

    .motm-score {
        font-size: 11px;
    }

    .motm-category-badge {
        font-size: 10px;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .motm-header {
        margin-bottom: 18px;
    }

    .motm-title {
        font-size: 24px;
    }

    .motm-subtitle {
        font-size: 12px;
    }

    .motm-winners-grid {
        gap: 10px;
    }

    .motm-winner-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
        padding: 12px 10px;
    }

    .motm-portrait {
        width: 60px;
        height: 60px;
    }

    .motm-portrait.motm-empty span {
        font-size: 28px;
    }

    .motm-category-badge {
        font-size: 9px;
        padding: 2px 10px;
        top: -10px;
    }
}

/* =========================================
   Rank Badge (between portrait and name)
   ========================================= */

.eve-rank-badge {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
    line-height: 0 !important;
}

.eve-rank-badge img {
    display: inline-block !important;
    width: auto !important;
    height: 24px !important;
    max-height: 24px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    vertical-align: middle !important;
}

/* =========================================
   Responsive Adjustments for Rank Badges
   ========================================= */
@media (max-width: 768px) {
    .eve-rank-badge img {
        height: 20px !important;
        max-height: 20px !important;
    }
}

@media (max-width: 480px) {
    .eve-rank-badge img {
        height: 18px !important;
        max-height: 18px !important;
    }
}

/* =========================================
   Rank Profile Shortcode Styles
   ========================================= */
.eve-rank-profile {
    background: linear-gradient(135deg, #1a1f2e 0%, #12141c 100%);
    border: 2px solid #3a3f48;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    margin: 20px auto;
    color: #e8e8e8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.eve-rank-profile[data-tier="1"] { border-color: rgba(255, 255, 255, 0.3); }
.eve-rank-profile[data-tier="2"] { border-color: #5a9de8; }
.eve-rank-profile[data-tier="3"] { border-color: #ff9800; }
.eve-rank-profile[data-tier="4"] { border-color: #9ca3af; }
.eve-rank-profile[data-tier="5"] { border-color: #f3c969; }
.eve-rank-profile[data-tier="6"] { border-color: #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }

.rank-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-profile-badge {
    flex-shrink: 0;
}

.rank-profile-badge img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rank-profile-info {
    flex: 1;
}

.rank-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.rank-profile-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.rank-profile-title .rank-name {
    font-weight: 600;
}

.rank-profile-title .rank-number {
    color: #8ca0c0;
    font-size: 14px;
}

.rank-profile-tier {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
}

.rank-profile-tier.tier-1 { background: rgba(255, 255, 255, 0.15); color: #e8e8e8; }
.rank-profile-tier.tier-2 { background: rgba(90, 157, 232, 0.2); color: #5a9de8; }
.rank-profile-tier.tier-3 { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.rank-profile-tier.tier-4 { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.rank-profile-tier.tier-5 { background: rgba(243, 201, 105, 0.2); color: #f3c969; }
.rank-profile-tier.tier-6 { background: rgba(255, 215, 0, 0.25); color: #ffd700; }

.rank-profile-xp {
    text-align: center;
    margin-bottom: 20px;
}

.rank-profile-xp .xp-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8ca0c0;
    margin-bottom: 4px;
}

.rank-profile-xp .xp-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.rank-profile-progress {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
}

.rank-profile-progress .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #8ca0c0;
    margin-bottom: 8px;
}

.rank-profile-progress .progress-bar {
    height: 8px;
    background: #2a2f38;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.rank-profile-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5a9de8 0%, #7ab8ff 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.eve-rank-profile[data-tier="3"] .progress-fill { background: linear-gradient(90deg, #ff9800 0%, #ffb84d 100%); }
.eve-rank-profile[data-tier="5"] .progress-fill,
.eve-rank-profile[data-tier="6"] .progress-fill { background: linear-gradient(90deg, #f3c969 0%, #ffd700 100%); }

.rank-profile-progress .progress-xp {
    font-size: 12px;
    color: #5a9de8;
    text-align: center;
}

.rank-profile-max-rank {
    text-align: center;
    padding: 16px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    color: #ffd700;
    font-weight: 600;
}

.rank-profile-max-rank .max-rank-icon {
    font-size: 24px;
    margin-right: 8px;
}

/* =========================================
   Rank Leaderboard Shortcode Styles
   ========================================= */
.eve-rank-leaderboard-container {
    background: #000;
    border-radius: 8px;
    padding: 26px;
    margin: 20px 0;
    color: #e8e8e8;
}

.rank-leaderboard-header {
    text-align: center;
    margin-bottom: 24px;
}

.rank-leaderboard-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.rank-leaderboard-subtitle {
    font-size: 14px;
    color: #8ca0c0;
    margin: 0;
}

.rank-leaderboard-table .rank-tier-col {
    width: 150px;
}

.rank-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.rank-tier-badge.tier-1 { background: rgba(255, 255, 255, 0.15); color: #e8e8e8; }
.rank-tier-badge.tier-2 { background: rgba(90, 157, 232, 0.2); color: #5a9de8; }
.rank-tier-badge.tier-3 { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.rank-tier-badge.tier-4 { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.rank-tier-badge.tier-5 { background: rgba(243, 201, 105, 0.2); color: #f3c969; }
.rank-tier-badge.tier-6 { background: rgba(255, 215, 0, 0.25); color: #ffd700; }

.rank-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.rank-badge-icon img {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.rank-badge-icon[data-tier="2"] img { box-shadow: 0 2px 8px rgba(90, 157, 232, 0.4); }
.rank-badge-icon[data-tier="3"] img { box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4); }
.rank-badge-icon[data-tier="5"] img { box-shadow: 0 2px 10px rgba(243, 201, 105, 0.5); }
.rank-badge-icon[data-tier="6"] img { box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6); }

.user-name {
    font-weight: 500;
    color: #fff;
}

/* Error/Empty states */
.eve-rank-error,
.eve-rank-empty,
.eve-rank-login-required {
    text-align: center;
    padding: 32px 20px;
    color: #9ca3af;
    font-size: 16px;
    background: #21252b;
    border-radius: 8px;
    border: 1px dashed #3a3f48;
}

/* Responsive rank profile */
@media (max-width: 480px) {
    .eve-rank-profile {
        padding: 16px;
    }

    .rank-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .rank-profile-badge img {
        width: 64px;
        height: 64px;
    }

    .rank-profile-name {
        font-size: 18px;
    }

    .rank-profile-xp .xp-value {
        font-size: 28px;
    }

    .rank-leaderboard-table .rank-tier-col {
        display: none;
    }
}

