/* Shared "top" list styles for users/editors/squads/blogs/posts/tests, rendered by TopList.vue.
   Consolidated from the 6 formerly-duplicated per-component style.css files. */

.top .sort_headings > label,
.top #user_search > label {
    margin-bottom: 3px;
    margin-right: 10px;
    font-size: 12px;
    color: var(--lightgray);
    font-weight: 500;
    display: block;
}

/* Users: login search box (formerly the standalone gtx:users.search component) */

.top .sortbycontainer {
    padding: 2px;
    margin-bottom: 0;
}

.top .sortbycontainer label {
    min-width: unset;
    padding: 9px 10px;
    flex: auto;
}

.top .sort_headings {
    margin-bottom: 0;
}

.top #user_search {
    position: relative;
    display: flex;
    gap: 6px;
}

.top #user_search input[type="text"] {
    width: 100%;
    height: 43px;
    padding: 0 20px;
    background: var(--bgblack);
    font-weight: 500;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    color: white;
    padding-right: 40px;
}

.top #user_search input[type="submit"] {
    width: 34px;
    height: 34px;
    font-size: 0;
    background-image: url(/local/templates/pikuco/images/icons/tops-pages/search.svg);
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    position: absolute;
    top: 4px;
    right: 5px;
    border: 0;
}

.top #user_search .reloadbtn {
    margin-left: auto;
    font-size: 12px;
    line-height: 34px;
    font-weight: 500;
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    float: right;
    text-align: center;
    background: var(--bgblack);
    border-radius: 10px;
    border: 2px solid #0000;
    text-transform: uppercase;
}

.top .top-page__search-wrapper {
    position: relative;
}

/* Loading state: a fixed-height, full-width black block, matching MainpageTops.vue's loader. */
.top .loader {
    width: 100%;
    min-height: 480px;
    display: flex;
    align-content: center;
    justify-content: center;
    background-color: var(--bgblack);
    flex-wrap: wrap;
    border-radius: 10px;
    padding: 40px;
}

.top .loader p {
    width: 100%;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 18px;
}


.top__property-stat {
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    font-family: Montserrat;
    margin-bottom: 0;
    text-shadow: 0 0 3px #000000bd;
    position: relative;
}

.top__get-more {
    width: 278px;
    height: 70px;
    display: table;
    background-color: var(--yellow);
    line-height: 70px;
    color: var(--black);
    font-weight: 500;
    font-size: 16px;
    padding-left: 25px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    margin: 40px auto;
    cursor: pointer;
}

.top__get-more:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: 20px;
    background-image: url(/local/templates/pikuco/images/loadmore.svg?v=2);
    position: absolute;
    top: 25px;
    left: 50px;
    animation: rotation 1s ease infinite;
}

.top-page__filter {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

/* ---- "user" style rows: users, editors ---- */

.user_top_rating {
    background: var(--bgblack);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 0px 0px 0px 16px;
    display: flex;
    gap: 12px;
    overflow: hidden;
}

.top-rating__header + .user_top_rating {
    border-radius: 0 0 10px 10px;
}

.top-rating__first-col {
    display: flex;
    align-items: center;
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}

.top-rating__stats {
    display: flex;
}

.top-rating__stats-col {
    width: 150px;
    border-left: 1px solid var(--bggray);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    background-size: 70px;
    background-position: left center;
    position: relative;
    text-align: right;
    justify-content: flex-end;
}

.top-rating__stats-col:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(315deg, #263238 0, rgba(38, 50, 56, 1) 50%, rgba(38, 50, 56, 0.2) 70%, rgba(38, 50, 56, 0) 100%);
}

.user_top_label {
    width: auto;
    height: 24px;
    min-width: 28px;
    padding: 0 5px;
    font-weight: 700;
    font-size: 16px;
    background: var(--bggray);
    border-radius: 100px;
    color: #fff;
    font-family: Montserrat;
    position: absolute;
    bottom: -2px;
    z-index: 3;
}

.user_top_avatar_wings {
    width: 82px;
    height: 82px;
    text-align: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: -4px;
    margin-top: -10px;
    margin-left: -10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user_top_rating .top-1 .user_top_label {
    color: #FFF6E4;
    text-align: center;
    text-shadow: 0 0 4px #ED6E1E;
    -webkit-text-stroke-width: 0.6px;
    -webkit-text-stroke-color: var(--yellow);
}
.user_top_rating .top-2 .user_top_label {
    color: #E4F7FF;
    text-align: center;
    text-shadow: 0 0 4px #00B2FF;
    -webkit-text-stroke-width: 0.6px;
    -webkit-text-stroke-color: #00B2FF;
}
.user_top_rating .top-3 .user_top_label {
    color: #F9EEFF;
    text-align: center;
    text-shadow: 0 0 3px #DC93FF;
    -webkit-text-stroke-width: 0.6px;
    -webkit-text-stroke-color: #C957FF;
}


.user_top_avatar_wings:after {
    content: '';
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.top-1 .user_top_avatar_wings:after { background-image: url(/local/templates/pikuco/images/icons/tops-pages/top-1.svg); }
.top-2 .user_top_avatar_wings:after { background-image: url(/local/templates/pikuco/images/icons/tops-pages/top-2.svg); }
.top-3 .user_top_avatar_wings:after { background-image: url(/local/templates/pikuco/images/icons/tops-pages/top-3.svg); }

.user_top_avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-block;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid var(--bggray);
}

.user_top_avatar .online {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #00e676;
    border-radius: 50%;
    bottom: -3px;
    right: -5px;
    position: absolute;
    z-index: 3;
}

.user_top_name {
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    color: #fff;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.user_top_name:hover {
    color: var(--yellow);
    text-decoration: none;
}

/* Sticky column-header bar, replacing the per-row subtitle labels */

.top-rating__header {
    position: sticky;
    top: 65px;
    z-index: 5;
    display: flex;
    align-items: center;
    background: var(--bgblack);
    border-radius: 10px 10px 0 0;
    padding-left: 16px;
    box-shadow: 0 0 0 2px var(--bggray);
}


.top-rating__header .top-rating__stats-col {
    background-image: none;
    padding: 12px 5px;
    text-align: center;
    justify-content: flex-start;
}

.top-rating__header .top-rating__stats-col:before {
    display: none;
}

.top-rating__header-name,
.top-rating__header .top-rating__stats-col span {
    font-size: 14px;
    font-weight: 500;
    color: #a19f9f;
    width: 100%;
}

/* ---- Meta line (author/blog avatar + name), judges list and stat-column icons:
   shared by squads/blogs/posts/tests rows, rendered inside .top-rating__name-wrapper ---- */

.top-rating__name-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 6px;
    padding-left: 8px;
}

.tournament_top_author {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    margin-bottom: 0px;
    color: #C2C2C2;
    position: relative;
}

.tournament_top_author:hover {
    color: var(--yellow);
    text-decoration: none;
}

.tournament_top_author-avatar {
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 6px;
    margin-top: 1px;
    background-color: var(--bggray);
}

.user-top__squad-leader:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--yellow);
    position: absolute;
    left: 12px;
    top: 0;
}

.user-top__squad-members {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.user_rating { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/test-rating.svg?v=2); }
.user_tests_added { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/profile-added.svg); }
.user_tests_passed { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/test-passes.svg?v=2); }
.user_comments { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/profile-comments.svg?v=2); }
.user_streak { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/profile-streak.svg); }
.user_streak_record { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/profile-streak-record.svg); }

.editor_rating { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/editor-rating.svg); }
.editor_reports { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/editor-reports.svg); }
.editor_accepted { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/editor-accepted.svg); }
.editor_declined { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/editor-declined.svg); }

.tournament_rating { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/test-rating.svg?v=3); }
.tournament_weight { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/test-weight.svg?v=3); }
.tournament_passes { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/test-passes.svg?v=3); }
.tournament_rate { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/test-rate.svg?v=3); }

.blog_rating { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/blog-rating.svg?v=1); }
.blog_posts { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/blog-posts.svg?v=1); }
.blog_days { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/blog-views.svg?v=1); }
.blog_top { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/blog-top.svg?v=1); }

.post_rating { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/editor-rating.svg); }
.post_views { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/blog-views.svg?v=1); }
.post_likes { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/post-likes.svg); }
.post_dislikes { background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/post-dislikes.svg); }

.squad_materials {
    background-image: url(/local/templates/pikuco/images/icons/tops-pages/new/squad-materials.svg);
}

/* Squads: "contact the leader" link */

.squad-contact-leader {
    background-image: url(/local/templates/pikuco/images/messeng.svg?v=4);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: left center;
    font-size: 12px;
    margin-top: -5px;
    float: left;
}


@media screen and (max-width: 992px) {
    .top-rating__stats-col {
        width: 115px;
        background-size: 60px;
        padding: 10px 12px;
    }

    .top__property-stat {
        font-size: 18px;
    }

    .user_top_name {
        font-size: 16px;
    }

    .top-page__filter {
        flex-wrap: wrap;
        gap: 10px;
    }

    .top #user_search,
    .top .top-page__search-wrapper {
        width: 100%;
    }

    .top-rating__header .top-rating__stats-col span, .top-rating__header-name {
        font-size: 12px;
    }
}

@media screen and (max-width: 767px) {
    .user_top_rating,
    .top-rating__header {
        flex-wrap: wrap;
        padding-left: 0;
        gap: 0;
    }

    .top-rating__header {
        top: 0;
    }

    .top-rating__header-name {
        display: none;
    }

    .top-rating__stats-col:first-child {
        border-left: 0;
    }

    .top-rating__stats {
        width: 100%;
        border-top: 1px solid var(--bggray);
    }

    .top-rating__stats-col {
        width: auto;
        background-size: 40px;
        background-position: 10px center;
        flex: 1;
    }

    .top-rating__first-col {
        padding-right: 15px;
        padding-left: 15px;
    }

    .user_top_name {
        font-size: 18px;
    }
}

@media screen and (max-width: 500px) {
    .top-rating__header .top-rating__stats-col span, .top-rating__header-name {
        font-size: 10px;
        font-weight: 400;
    }

    .top-rating__stats-col {
        padding: 10px 10px;
        background-size: 32px;
    }

    .top__property-stat {
        font-size: 14px;
        width: 100%;
    }

    .tournament_top_author {
        font-size: 12px;
    }

    .user_top_name {
        font-size: 16px;
    }

    .user_top_avatar {
        width: 52px;
        height: 52px;
    }

    .user_top_avatar_wings {
        width: 72px;
        height: 72px;
        margin-bottom: -6px;
        margin-top: -6px;
    }

    .user_top_label {
        bottom: calc(50% - 12px);
        left: -10px;
    }

    .top-rating__first-col {
        padding-left: 30px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
