/* © 2025 PyLocus. All rights reserved. Unauthorized use prohibited. */
/* CSS for ranked.html */

.ranked-page-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

.ranked-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 50px;
    font-weight: 800;
}

/* Podium Styles */
.podium-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 100px;
    padding-top: 30px;
}

.podium-pillar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 460px; /* Increased from 420px */
}

.podium-pillar {
    width: 100%;
    margin-top: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Pillar Heights */
.pillar-first {
    height: 350px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    /* Gold */
    z-index: 3;
}

.pillar-second {
    height: 250px;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    /* Silver */
    z-index: 2;
}

.pillar-third {
    height: 180px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    /* Bronze */
    z-index: 1;
}

.rank-text {
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.8;
}

.likes-count-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: -10px;
}

/* Card sizing on podium */
.podium-pillar-wrapper .complaint-card {
    margin-bottom: -10px;
    z-index: 10;
    overflow: visible !important;
}



.podium-pillar-wrapper.center .complaint-card {
    transform: scale(1.05);
    z-index: 11;
}

/* Adjust badge for 1st place */
.podium-pillar-wrapper.center .rank-badge {
    width: 75px;
    top: -15px;
    right: -15px;
}

.podium-pillar-wrapper .complaint-card:hover {
    transform: translateY(-10px);
    z-index: 20;
}

/* List Styles */
.ranked-list-section {
    max-width: 900px; /* Increased from 800px */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ranked-list-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.list-rank-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #ffffff, #f3f4f6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #374151;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    border: 1px solid #e5e7eb;
}

.ranked-list-item .complaint-card {
    flex-grow: 1;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .podium-section {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .podium-pillar-wrapper {
        width: 100%;
        max-width: 400px;
        flex-direction: column-reverse;
    }

    .podium-pillar {
        height: 120px !important;
        border-radius: 15px;
    }
}

@media (max-width: 576px) {

    .podium-pillar-wrapper .complaint-card,
    .podium-pillar-wrapper.center .complaint-card {
        width: 100%;
        transform: none !important;
    }

    .podium-pillar-wrapper .complaint-card:hover,
    .podium-pillar-wrapper.center .complaint-card:hover {
        transform: translateY(-5px) !important;
    }

    .ranked-list-item {
        flex-direction: column;
        gap: 12px;
    }

    .list-rank-badge {
        width: 100%;
        height: 45px;
        font-size: 1.4rem;
        border-radius: 12px;
    }

    .ranked-list-item .complaint-card {
        width: 100%;
    }
}

.ranked-list-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ranked-list-item.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.podium-pillar-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.podium-pillar-wrapper.revealed {
    opacity: 1;
    transform: translateY(0);
}