/* ======================================
   WORLD CAPITAL – RANKING 3D PRO
====================================== */

.section-ranking {
    width: 100%;
    max-width: 1250px;
    margin: 150px auto 100px auto;
    padding: 0 40px;
}

.section-ranking h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* ======================================
   PODIUM 3D
====================================== */

.ranking-podium {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.podium-item {
    width: 170px;
    padding: 20px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(160deg, #13243d, #0c1627);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(0);
    transition: 0.3s ease;
}

.podium-item:hover {
    transform: translateY(-6px);
}

.podium-rank {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.podium-name {
    font-size: 15px;
    margin-bottom: 6px;
}

.podium-points {
    font-size: 14px;
    font-weight: 600;
    color: #ffd700;
}

.podium-1 {
    transform: scale(1.08);
    background: linear-gradient(160deg, rgba(255,215,0,0.25), #0c1627);
}

.podium-2 {
    background: linear-gradient(160deg, rgba(192,192,192,0.2), #0c1627);
}

.podium-3 {
    background: linear-gradient(160deg, rgba(205,127,50,0.2), #0c1627);
}

/* ======================================
   CARD – PREMIUM DARK 3D
====================================== */

.ranking-card {
    background: linear-gradient(165deg, #0f1c30, #0a1422);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 25px 70px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;

    padding: 20px 25px 15px 25px; /* 👈 spazio laterale */
}



/* ======================================
   TABLE
====================================== */

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}



/* HEADER */

.ranking-table thead {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ranking-table th {
    padding: 14px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    opacity: 0.7;
    color: #cfd8e3;
}


/* ROWS */

.ranking-table td {
    padding: 14px 30px;
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}


/* COLUMN WIDTHS */

.ranking-table th:first-child,
.ranking-table td:first-child {
    width: 120px;
    font-weight: 700;
    opacity: 0.9;
}

.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
    width: auto;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
    width: 150px;
    text-align: right;
    font-weight: 600;
    color: #ffd700;
}


/* HOVER */

.ranking-table tbody tr {
    transition: all 0.2s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}


/* PODIUM ROWS – SOFT GLOW */

.top-1 {
    background: linear-gradient(90deg, rgba(255,215,0,0.18), transparent);
}

.top-2 {
    background: linear-gradient(90deg, rgba(192,192,192,0.15), transparent);
}

.top-3 {
    background: linear-gradient(90deg, rgba(205,127,50,0.15), transparent);
}


/* CURRENT USER – PREMIUM GOLD BORDER */

.row-me {
    position: relative;
}

.row-me td {
    border-top: 1px solid rgba(255,215,0,0.4);
    border-bottom: 1px solid rgba(255,215,0,0.4);
    background: rgba(255,215,0,0.06);
}


/* ======================================
   PODIO SOFT (non invasivo)
====================================== */

.top-1 {
    background: linear-gradient(90deg,
        rgba(255,215,0,0.18),
        rgba(255,215,0,0.04)
    );
    font-weight: 700;
}

.top-2 {
    background: linear-gradient(90deg,
        rgba(192,192,192,0.14),
        rgba(192,192,192,0.04)
    );
}

.top-3 {
    background: linear-gradient(90deg,
        rgba(205,127,50,0.14),
        rgba(205,127,50,0.04)
    );
}

/* Utente corrente elegante */

.row-me {
    box-shadow: inset 0 0 0 1px rgba(255,215,0,0.4);
}


/* ======================================
   BADGES
====================================== */

.badge-elite {
    margin-left: 8px;
    padding: 3px 8px;
    background: #ffd700;
    color: #000;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-pro {
    margin-left: 8px;
    padding: 3px 8px;
    background: #3da9fc;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* ======================================
   SEARCH
====================================== */

.ranking-search {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.ranking-search input {
    flex: 1;
    padding: 10px 14px;
    background: #0e1a2b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
}

.ranking-search button {
    padding: 10px 18px;
    background: #ffd700;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ======================================
   SUMMARY
====================================== */

.ranking-summary {
    margin-bottom: 25px;
    padding: 12px 18px;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 10px;
    font-size: 14px;
}

.unranked {
    color: #ff4d4d;
    font-weight: 600;
}

/* ======================================
   PAGINATION
====================================== */

.ranking-pagination {
    margin-top: 30px;
    text-align: center;
}

.ranking-pagination a {
    display: inline-block;
    margin: 0 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    text-decoration: none;
    color: white;
    transition: 0.2s;
    font-size: 14px;
}

.ranking-pagination a:hover {
    background: rgba(255,255,255,0.15);
}

.ranking-pagination a.active {
    background: #ffd700;
    color: #000;
    font-weight: 600;
}
