/* ========= Armory leaderboards ========= */
.leaderboards {
}
.leaderboards_menu {
    float: left;
    padding: 30px 0 30px 32px;
}
.leaderboards_menu ul {
    list-style: none;
}
.leaderboards_menu ul li {
    display: block;
    height: 45px;
    text-align: left;
    padding: 11px 0 0 10px;
    box-sizing: border-box;
}
.leaderboards_menu ul li a {
    text-shadow: 0 1px 1px rgba(12, 7, 6, 0.75);
    font-size: 13px;
    font-weight: 400;
    color: #897d66;
}
.leaderboards_menu ul li a.active,
.leaderboards_menu ul li a:hover {
    color: #A7997F;
}
.leaderboards_menu ul li a.active {
    text-align: center;
    font-weight: bold;
    background: #45362e;
    padding: 6px 14px 6px 14px;
    border-radius: 6px;
}
.leaderboards_menu ul li a.disabled {
    display: inline-block;
    padding-right: 20px;
    color: #584e41;
    background: url(../css/images/locket.png) no-repeat right;
}
.leaderboards_menu ul li a.arrow {
    display: inline-block;
    padding-right: 17px;
    background: url(../css/images/tiny-arrow.png) no-repeat right top 3px;
}
.leaderboards_menu ul #separator {
    display: block;
    width: 186px;
    height: 2px;
    padding: 0;
    background: url(../css/images/menu-separator.png) no-repeat left;
}
.leaderboards_content {
    float: right;
    margin: 16px;
    width: 74%;
    min-height: 100px;
}
.leaderboards_content .title {
    float: right;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
    color: #9b8b75;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    padding: 18px 30px;
}
.leaderboards_content .realmname {
    float: left;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
    color: #9b8b75;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    padding: 0 0 18px 0;
}
.leaderboards_content .realmname .selectboxit-container {
    min-width: 240px;
}
.leaderboards_content .filters {
    margin: 16px 16px 16px 0;
    background-color: rgba(12, 7, 6, 0.2);
    border-radius: 2px;
    min-height: 100px;
    font-size: 0;
    text-align: left;
    padding: 16px;
    text-align: right;
}
#left .content .leaderboards_content .filters form {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
#left .content .leaderboards_content .filters form .row {
}
#left .content .leaderboards_content .filters form .row label {
    display: inline-block;
    vertical-align: top;
    font-size: 12px;
    font-weight: normal;
    color: #908371;
    text-shadow: 0 1px 1px rgba(0,0,0,.75);
    width: auto;
    margin: 0 12px 0 0;
}
#left .content .leaderboards_content .filters form .row label input[type="text"],
#left .content .leaderboards_content .filters form .row label .selectboxit-container {
    display: block;
    width: 148px;
    margin-top: 6px;
}
#left .content .leaderboards_content .filters form .row label input[type="text"] {
    padding: 9px;
    font-size: 12px;
}
#left .content .leaderboards_content .filters form .row label .selectboxit-option-icon-container {
    width: 0px;
    margin-left: 2px;
}
#left .content .leaderboards_content .filters form .row label .selectboxit-container span, 
#left .content .leaderboards_content .filters form .row label .selectboxit-container .selectboxit-options a {
    height: 33px;
    line-height: 33px;
}
#left .content .leaderboards_content .filters form .row label .selectboxit .selectboxit-arrow-container {
    width: 34px;
}
#left .content .leaderboards_content .filters form .row label .selectboxit-text {
    font-size: 12px;
}
#left .content .leaderboards_content .filters form .row label .selectboxit-default-arrow {
    width: 18px;
    height: 12px;
    background-size: contain;
}
#left .content .leaderboards_content .filters form .row label #min_rating,
#left .content .leaderboards_content .filters form .row label #max_rating {
    display: inline-block;
    width: 70px;
}
#left .content .leaderboards_content .filters form .row label .icheckbox, 
#left .content .leaderboards_content .filters form .row label .iradio {
    margin-left: 6px;
}
#left .content .leaderboards_content .filters form .row .filter-class {
    width: 112px;
    direction: rtl;
    padding: 6px 0 0 0;
}
#left .content .leaderboards_content .filters form .row input[type="submit"] {
    margin: 24px 10px 6px 10px;
}
.results {
}

.results .tabs{
    text-align: left;
    font-size:14px;
}
.pagination {
    width: 100%;
    margin: 0;
    text-align: right;
    box-sizing: border-box;
    padding: 7px 0 0 0;
    font-size: 0px;
}
.pagination a,
.pagination strong {
    display: inline-block;
    vertical-align: top;
    border-radius: 3px;
    box-sizing: border-box;
    background-color: rgba(61, 49, 42, 0.38);
    box-shadow: 1px 1px 1px rgba(0,0,0,.1), inset 0 0 1px rgba(252, 252, 252, 0.17);
    border: solid 1px #2c221d;
    font-size: 12px;
    text-align: center;
    min-width: 26px;
    height: 26px;
    padding: 4px 8px;
    margin-left: 4px;
}
.pagination a:hover {
    background-color: #3d312a;
    box-shadow: 0 0 7px rgba(11,6,5,.25), inset 0 0 1px rgba(252,252,252,.34);
}


.table {
	margin: 16px 16px 16px 0;
}
.table-header,
.table-row {
    display: flex; /* فعال کردن فلکس‌باکس */
    justify-content: space-between; /* توزیع یکنواخت ستون‌ها */
    align-items: center;
    width: 100%;
}

.table-header {
    height: 34px;
    background-color: rgb(175 142 115 / 15%);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.15);
    border: 1px solid #614b3e;
}

.table-body {
    width: 100%;
}

.table-row {
    
}

.column {
    flex: 1; /* مساوی کردن اندازه ستون‌ها */
    padding: 8px;
}

.column:last-child {
    border-right: none; /* حذف خط راست از آخرین ستون */
}


.table-header .column {
    flex: 1; /* همه ستون‌ها به طور مساوی کشیده می‌شوند */
    font-size: 13px;
    color: #67584f;
    text-shadow: 1px 1px 1px rgba(0,0,0,.4);
    text-align: center;
    padding: 8px 7px;
     /* جداکننده بین ستون‌ها */
}

.table-header .column:last-child {
    border-right: none; /* حذف خط جداکننده برای آخرین ستون */
}

.table-body {margin-top: 12px;}
.table-body .map-label{
    text-align: left;
    padding: 4px 0px 4px 8px;
    background: #69300eb5;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    font-size: 16px;
    width: 390px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 0, 0, 0.1); /* سایه برای برجسته شدن */
    transform: translateY(-4px); /* بیرون زدگی به سمت بالا */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* اضافه کردن افکت حرکت */

}
.table-body .map-label .map-name, .duration{
    color:#a38a59
}
.table-body .map-label .mvp-player{
        color: #aaf99194;
}
.table-row {
    width: 100%;
    height: 34px;
    background-color: rgba(79, 64, 55, .15);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .15), inset 0 1px rgba(179, 158, 124, .03);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .15), inset 0 1px rgba(179, 158, 124, .03);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15), inset 0 1px rgba(179, 158, 124, .03);
    text-align: left;
    margin: 0 0 5px 0;
}
.table-row:nth-child(odd) {
    background-color: rgba(53, 44, 38, 0.15);
}
/*.table-row:hover {
    background-color: rgba(134, 110, 96, 0.15);
}*/
.table-row.selected {
    background-color: rgba(134, 110, 96, 0.15);
}
.table-row.selected:hover {
    background-color: rgba(134, 110, 96, 0.2);
}
.table-row .column {
    font-size: 14px;
}
.table-row.selected .column {
    color: #8c817c;
}
.table-row .column .win {
    color: #019b39;
}
.table-row .column .loss {
    color: #a74730;
}

.table-header .column:nth-child(1),
.table-row .column:nth-child(1) {
	width: 54px;
}
.table-header .column:nth-child(2),
.table-row .column:nth-child(2) {
}
.table-header .column:nth-child(3),
.table-row .column:nth-child(3) {
}

.leaderboards .icon-frame {
	margin-right: 4px;
    display: inline-block;
    vertical-align: middle;
	top: -1px;
}
.leaderboards .icon-frame img {
    vertical-align: top;
    margin-top: -1px;
    border: 1px solid #877661;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.45), 0 0 0 1px #554840;
}
.leaderboards .icon-frame:before {
    content: " ";
    display: block;
    position: absolute;
    top: 0px;
    left: 1px;
    width: 18px;
    height: 18px;
    box-shadow: inset 0 0 6px rgba(12, 7, 6, 0.85), inset 0 0 6px rgba(12, 7, 6, 0.85);
    z-index: 100;
}

.leaderboards .frame-14, 
.leaderboards .frame-14 img, 
.leaderboards .frame-14:before {
	width: 14px;
    height: 14px;
}
.leaderboards .frame-14:before {
    box-shadow: inset 0 0 2px rgba(12, 7, 6, 0.85), inset 0 0 2px rgba(12, 7, 6, 0.85);
}
#random_arena_event{
    background: #362c24c4;
    width: auto;
    height: 105px;
    margin: 10px 0px 10px 0px;
    border-radius: 5px;
    padding: 15px 87px 7px 18px;
    color: #9381729e;
    text-align: right;
    line-height: 24px;
    direction: rtl;
    background-image: url(/application/modules/leaderboards/css/images/random_arena_cup.png);
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 51px;
    /* -webkit-box-shadow: 0 0 15px rgba(12,7,6,.25), inset 0 0 25px rgba(12,7,6,.8); */
    -moz-box-shadow: 0 0 15px rgba(12,7,6,.25), inset 0 0 25px rgba(12,7,6,.8);
    box-shadow: 0 0 15px rgb(12 7 6 / 6%);
}
.table-row.winner {
    border: 2px solid #283e28;
    background-color: rgb(34 210 34 / 10%);
}
.table-row.winner:nth-child(odd) {
    background-color: rgb(36 46 24);
}
.table-row.winner.mvp {
    /* background-color: rgb(75 152 63 / 28%); */
    border: 1px solid transparent;
    border-image: linear-gradient(to right, #61c357, #283e28) 0.5;
}

.mvp-star {
    color: gold;
    font-size: 18px;
    margin-left: 5px;
    vertical-align: middle;
    position: absolute;
    left: -31px;
    animation: shine 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.7);
}

@keyframes shine {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.9);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.7);
    }
}

/* ========= Shimmer Loading ========= */
@keyframes lb-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.lb-shimmer-cell {
    display: inline-block;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200px 100%;
    animation: lb-shimmer 1.4s ease-in-out infinite;
}
.lb-shimmer-group {
    position: relative;
    overflow: hidden;
}
.lb-group-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: #352e21;
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    gap: 8px;
    transition: opacity 0.35s ease;
}
.lb-shimmer-group.lb-revealed .lb-group-overlay {
    opacity: 0;
    pointer-events: none;
}
.lb-skel-row {
    display: flex;
    gap: 8px;
}
.lb-skel-maplabel {
    width: 390px;
    height: 28px;
    background: rgba(105, 48, 14, 0.71);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 10px;
    margin-top: 8px;
}
.lb-skel-tablerow {
    display: flex;
    align-items: center;
    height: 34px;
    background-color: rgba(79, 64, 55, .15);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15), inset 0 1px rgba(179, 158, 124, .03);
    padding: 0 8px;
    gap: 8px;
    margin-bottom: 5px;
}
.lb-skel-tablerow:nth-child(odd) {
    background-color: rgba(53, 44, 38, 0.15);
}
.lb-skel-icons {
    display: flex;
    gap: 3px;
    margin-right: 4px;
}
.lb-skel-icon {
    width: 14px !important;
    height: 14px !important;
    border-radius: 2px;
}
.lb-shimmer-row {
    position: relative;
    overflow: hidden;
}
.lb-shimmer-row > *:not(.lb-row-overlay) {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lb-shimmer-row.lb-revealed > * {
    opacity: 1;
}
.lb-shimmer-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200px 100%;
    animation: lb-shimmer 1.4s ease-in-out infinite;
    transition: opacity 0.3s ease;
}
.lb-shimmer-row.lb-revealed::before {
    opacity: 0;
    pointer-events: none;
}
.lb-shimmer-row:not(.lb-revealed) .icon-frame img,
.lb-shimmer-group:not(.lb-revealed) .icon-frame img {
    border-color: transparent;
    box-shadow: none;
}
.lb-shimmer-row:not(.lb-revealed) .icon-frame:before,
.lb-shimmer-group:not(.lb-revealed) .icon-frame:before {
    box-shadow: none;
}
.lb-loading-skeleton {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lb-loading-skeleton .lb-skel-row {
    padding: 10px 8px;
    background-color: rgba(79, 64, 55, .08);
    border-radius: 2px;
}
.lb-loading-skeleton .lb-shimmer-cell {
    height: 16px;
}

/* ========= Top100 View Overrides ========= */
.top100-view .table-row {
    display: flex;
    align-items: center;
    font-size: 14px;
}
.top100-view .table-row:hover {
    background-color: rgba(134, 110, 96, 0.15);
}
.top100-view .table-header .column,
.top100-view .table-row .column {
    flex: 1;
    padding: 8px;
    box-sizing: border-box;
}
.top100-view .table-header .column:nth-child(1),
.top100-view .table-row .column:nth-child(1) {
    flex: 0 0 55px;
    width: auto;
}
.top100-view .table-header .column:nth-child(2),
.top100-view .table-row .column:nth-child(2) {
    flex: 0 0 158px;
    text-align: left;
}
.top100-view .table-header .column:nth-child(3),
.top100-view .table-row .column:nth-child(3) {
    flex: 1 0 144px;
    text-align: center;
    margin-left: 350px;
}
