/* votes.css — стили страницы голосования (microwin7/tops)
   BEM-сущность: votes__
*/

/* === ОБЁРТКА === */

.votes__page {
    /* контейнер страницы */
}

/* === ЗАГОЛОВКИ === */

.votes__header {
    background: hsla(240, 7%, 12%, 0.90);
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
    border-radius: 7px;
    padding: 10px;
    font-weight: bold;
    font-size: 24px;
    line-height: 30px;
    color: #5ab9ea;
    text-align: center;
    margin-bottom: 30px;
}

.votes__miniheader {
    background: hsla(240, 7%, 12%, 0.90);
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
    border-radius: 7px;
    padding: 10px;
    font-weight: bold;
    font-size: 24px;
    line-height: 30px;
    color: #5ab9ea;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 15px;
}

/* === БЛОК ПОМОЩИ === */

.votes__help {
    background: hsla(240, 7%, 12%, 0.90);
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
    border-radius: 7px;
    padding: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 3%;
}

.votes__help img {
    padding: 5px 30px;
    height: 100%;
}

.votes__help-text {
    font-weight: bold;
    font-size: 14px;
    line-height: 25px;
    color: #d5dfea;
    border-left: 2px solid rgba(90, 185, 234, 0.4);
    padding: 10px 25px;
}

.votes__help-text p {
    margin-bottom: unset;
    margin-top: unset;
    font-size: inherit;
    font-weight: inherit;
}

/* === ТАБЛИЦА ТОПОВ === */

.votes__table {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* === КАРТОЧКА ТОПА (активная) === */

.votes__site {
    background: hsla(240, 7%, 12%, 0.90);
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
    border-radius: 7px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(25% - 10px);
    min-width: 200px;
    flex: 0 0 calc(25% - 10px);
    margin: 0;
}

.votes__site h4 {
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #6cdaee;
    text-align: center;
}

.votes__site p {
    font-weight: bold;
    font-size: 15px;
    line-height: 20px;
    color: #d5dfea;
    text-align: center;
    margin-bottom: 4px;
}

.votes__site p span {
    color: #55b2fd;
}

.votes__divider {
    height: 1px;
    width: 60%;
    background: rgba(90, 185, 234, 0.15);
}

.votes__site a {
    width: 75%;
}

/* === ИКОНКИ ТОПОВ === */

.votes__icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 7px auto;
    flex-shrink: 0;
}

.votes__icon--topcraft { background: rgba(255,193, 50, 0.15); color: #FFC132; }
.votes__icon--mctop    { background: rgba( 90,185,234, 0.15); color: #5ab9ea; }
.votes__icon--mcrating { background: rgba(154,211, 31, 0.15); color: #9AD31F; }
.votes__icon--mineserv { background: rgba(206,147,216, 0.15); color: #CE93D8; }
.votes__icon--hotmc    { background: rgba(239, 83, 80, 0.15); color: #EF5350; }
.votes__icon--mcrate   { background: rgba(255,112, 67, 0.15); color: #FF7043; }
.votes__icon--default  { background: rgba(115,149,174, 0.15); color: #7395ae; }

/* === КНОПКИ ГОЛОСОВАНИЯ === */

.votes__btn {
    background: rgba(85, 178, 253, 0.10);
    border: 1px solid rgba(85, 178, 253, 0.28);
    border-radius: 8px;
    outline: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    color: #55b2fd;
    padding: 12px 0px;
    width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.votes__btn:hover {
    background: rgba(85, 178, 253, 0.22);
    border-color: rgba(85, 178, 253, 0.65);
    color: #fff;
    box-shadow: 0 0 16px rgba(85, 178, 253, 0.35), 0 4px 12px rgba(85, 178, 253, 0.20);
    transform: translateY(-2px);
}

.votes__btn:active {
    background: rgba(85, 178, 253, 0.30);
    border-color: rgba(85, 178, 253, 0.80);
    color: #fff;
    box-shadow: 0 0 8px rgba(85, 178, 253, 0.20);
    transform: translateY(0);
}

.votes__btn--voted {
    background: rgba(154, 211, 31, 0.12);
    color: #9AD31F;
    cursor: default;
    border: 1px solid rgba(154, 211, 31, 0.25);
}

.votes__btn--voted:hover {
    background: rgba(154, 211, 31, 0.12);
    color: #9AD31F;
    box-shadow: none;
    transform: none;
}

/* === КАРТОЧКА ТОПА (неактивная) === */

.votes__site--inactive {
    background: hsla(240, 7%, 12%, 0.60);
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
    border-radius: 10px;
    width: 25%;
    height: 80%;
    display: block;
    font-weight: 700;
    font-size: 23px;
    line-height: 33px;
    text-align: center;
    color: #7395ae;
    margin: 0 auto;
    padding: 45px 20px;
}

/* === НЕДЕЛЬНЫЕ БЛОКИ === */

.votes__week-help {
    padding: 10px 0;
    margin-top: 3%;
    margin-bottom: 2%;
}

.votes__week-cong {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: hsla(240, 7%, 12%, 0.90);
    box-shadow: 0px 4px 15px rgb(166 166 166 / 10%);
    border-radius: 7px;
    padding: 15px;
    margin-bottom: 3%;
}

/* === СТАТУСЫ === */

/* Плашки дней 1-7 — не кнопки, без hover */
.votes__status {
    background: rgba(85, 178, 253, 0.08);
    border: 1px solid rgba(85, 178, 253, 0.22);
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    color: #7fb8f0;
    padding: 8px 11px;
}

/* День уже проголосован — зелёная стеклянная плашка */
.votes__status--ok {
    background: rgba(154, 211, 31, 0.15);
    border-color: rgba(154, 211, 31, 0.38);
    color: #9AD31F;
    font-weight: 700;
}

/* День 7 / завершённая неделя — синяя стеклянная плашка */
.votes__status-end {
    background: rgba(85, 178, 253, 0.15);
    border: 1px solid rgba(85, 178, 253, 0.40);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #55b2fd;
    padding: 8px 11px;
    box-shadow: 0 0 10px rgba(85, 178, 253, 0.18);
}

.votes__status-end p {
    color: #55b2fd !important;
}

/* === ТАБЛИЦА РЕЙТИНГА === */

.votes__top {
    width: 100%;
    text-align: center;
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 15px rgba(166, 166, 166, 0.15);
    margin-top: 2%;
    margin-bottom: 4%;
    background: hsla(240, 7%, 12%, 0.88);
    border-radius: 8px;
    overflow: hidden;
}

.votes__top thead tr {
    background: hsla(240, 7%, 12%, 0.90);
    box-shadow: 0px 2px 4px rgb(107 107 107 / 25%);
    font-weight: 500;
    font-size: 15px;
    line-height: 19px;
    color: #d5dfea;
}

.votes__top thead tr td {
    padding: 8px 0;
}

.votes__top thead tr td:first-child {
    border-radius: 8px 0 0 0;
    width: 45px;
}

.votes__top thead tr td:last-child {
    border-radius: 0 8px 0 0;
}

.votes__top tbody tr {
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: #d5dfea;
}

.votes__top tbody tr:nth-child(even) {
    background: rgba(90, 185, 234, 0.08);
    color: #d5dfea;
}

.votes__top tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
    color: #d5dfea;
}

.votes__top tbody tr td {
    padding: 8px 0;
    border-right: 1px solid rgba(90, 185, 234, 0.12);
    border-bottom: 1px solid rgba(90, 185, 234, 0.08);
    border: 1px solid #444;
}

.votes__top tbody tr td:nth-child(2) {
    text-decoration: underline;
    border: 1px solid #444;
}

.votes__top tbody tr td:last-child {
    border-right: unset;
    border: 1px solid #444;
}

.votes__top tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.votes__top tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* === БЛОК "ЧТО ЗА ГОЛОСА" === */

.votes__what {
    background: hsla(240, 7%, 12%, 0.90);
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
    border-radius: 7px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3%;
}

.votes__what-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.votes__what-item {
    display: flex;
    align-items: center;
    width: 32%;
    justify-content: center;
    border: 1px solid rgba(90, 185, 234, 0.38);
    border-radius: 6px;
}

.votes__what h4 {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #6cdaee;
}

.votes__what-item p {
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    color: #d5dfea;
    margin-bottom: unset;
    margin-left: 10px;
}

.votes__what-num {
    font-weight: 700;
    font-size: 33px;
    color: #55b2fd;
}

/* === RESPONSIVE === */

@media screen and (max-width: 1199px) {

    .votes__status {
        font-size: 15px;
        padding: 8px 10px;
    }

    .votes__status-end {
        font-size: 15px;
        padding: 8px 10px;
    }

    .votes__what-item p {
        font-size: 14px;
    }

}

@media screen and (max-width: 991px) {

    .votes__help-text, .votes__btn {
        font-size: 13px;
    }

    .votes__site p {
        font-size: 14px;
    }

    .votes__week-cong {
        flex-wrap: wrap;
    }

    .votes__status {
        width: 24%;
        margin-bottom: 1%;
    }

    .votes__status-end {
        width: 24%;
        margin-bottom: 1%;
    }

}

@media screen and (max-width: 940px) {

    .votes__help {
        padding: 23px 0;
    }

    .votes__help-text {
        line-height: 21px;
        padding: 7px 20px;
    }

    .votes__what-num {
        font-size: 28px;
    }

    .votes__what-item p {
        font-size: 13px;
    }

}

@media screen and (max-width: 700px) {

    .votes__site, .votes__site--inactive {
        width: calc(33.33% - 10px);
        flex: 0 0 calc(33.33% - 10px);
    }

}

@media screen and (max-width: 635px) {

    .votes__help img {
        padding: 3px 20px;
        width: 20%;
    }

    .votes__help-text {
        line-height: 19px;
        padding: 7px 17px;
        width: 79%;
    }

    .votes__help {
        padding: 15px 0;
    }

    .votes__what-block {
        flex-direction: column;
    }

    .votes__what-item {
        width: 100%;
        margin-bottom: 1%;
        border: unset;
        border-bottom: 1px solid rgba(90, 185, 234, 0.2);
        border-radius: unset;
    }

}

@media screen and (max-width: 535px) {

    .votes__table {
        flex-direction: row;
        justify-content: center;
    }

    .votes__site, .votes__site--inactive {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 10px;
    }

}

@media screen and (max-width: 500px) {

    .votes__top thead tr td:first-child {
        width: 35px;
    }

    .votes__top thead tr {
        font-size: 13px;
    }

    .votes__top tbody tr {
        font-size: 12px;
    }

    .votes__status {
        width: 49%;
        margin-bottom: 1%;
    }

    .votes__status-end {
        width: 49%;
        margin-bottom: 1%;
    }

    .votes__header {
        font-size: 26px;
        text-align: center;
    }

    .votes__miniheader {
        font-size: 20px;
        text-align: center;
    }

    .votes__help img {
        width: 100px;
    }

    .votes__site, .votes__site--inactive {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }

}

@media screen and (max-width: 370px) {

    .votes__site, .votes__site--inactive {
        width: 100%;
        flex: 0 0 100%;
    }

}

