@charset "UTF-8";

.rank-list-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 35px;
    margin-bottom: 35px;
}

.rank-list-section h2 {
    font-size: 30px; /* Larger heading */
    color: #333;
    margin-bottom: 35px;
    text-align: center;
    font-weight: bold;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased gap */
}

.rank-item {
    display: flex;
    align-items: center;
    background-color: #FAF8F6; /* Item background */
    border: 1px solid #F0EFEF;
    border-radius: 12px; /* More rounded */
    padding: 20px; /* Increased padding */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.rank-item.top-3 {
    background-color: #FFE4B5; /* Moccasin background for top 3 */
    border-color: #FFDAB9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.rank-item.top-3:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}


.rank-number {
    font-size: 32px; /* Larger number */
    font-weight: bold;
    color: #FF9A68; /* Peach Orange */
    width: 50px; /* Wider number area */
    text-align: center;
    flex-shrink: 0;
    margin-right: 25px;
}

/* Specific colors for top ranks */
.rank-item.top-3:nth-child(1) .rank-number {
    color: #FFD700; /* Gold */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
.rank-item.top-3:nth-child(2) .rank-number {
    color: #C0C0C0; /* Silver */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
.rank-item.top-3:nth-child(3) .rank-number {
    color: #CD7F32; /* Bronze */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}


.rank-item .app-link {
    display: flex;
    align-items: center;
    flex-grow: 1;
    color: inherit;
}

.rank-item .app-icon {
    width: 80px; /* Larger icon */
    height: 80px;
    object-fit: contain;
    border-radius: 15px; /* More rounded */
    margin-right: 20px;
    border: 1px solid #FFDAB9;
    flex-shrink: 0;
}

.rank-item .app-info {
    flex-grow: 1;
}

.rank-item h3 {
    font-size: 20px; /* Larger heading */
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
}

.rank-item p {
    font-size: 15px; /* Larger text */
    color: #666;
    margin-bottom: 0;
}

/* Mobile specific adjustments for rank page */
@media (max-width: 768px) {
    .rank-list-section {
        padding: 25px;
        margin-bottom: 30px;
    }

    .rank-list-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .rank-list {
        gap: 15px;
    }

    .rank-item {
        padding: 15px;
        gap: 15px;
    }

    .rank-number {
        font-size: 26px;
        width: 40px;
        margin-right: 15px;
    }

    .rank-item .app-icon {
        width: 65px;
        height: 65px;
        margin-right: 15px;
        border-radius: 12px;
    }

    .rank-item h3 {
        font-size: 18px;
    }

    .rank-item p {
        font-size: 13px;
    }
}