﻿/* ===================================
   RACE CHECKBOXES - GRID VERSION
   =================================== */

/* Обертка с Grid */
.warcraft-shop-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

/* Элемент с чекбоксом */
.race-item {
    width: 100%;
}

/* Скрываем input */
.race-input {
    display: none;
}

/* Label - основной контейнер */
.race-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #25252e 0%, #292932 100%);
    border: 2px solid rgba(79, 234, 159, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    width: 100%;
    user-select: none;
}

.race-label:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2a2a33 0%, #2e2e38 100%);
    border-color: rgba(79, 234, 159, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Кастомный чекбокс */
.race-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #1a1a21 0%, #222228 100%);
    border: 2px solid rgba(79, 234, 159, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.race-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #1a1a21;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Информация о расе */
.race-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Название расы */
.race-title {
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Обертка для прогресс-бара и процента */
.race-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Прогресс бар */
.race-bar {
    flex: 1;
    height: 6px;
    background: rgba(79, 234, 159, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.race-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4fea9f 0%, #38b87a 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Процент XP */
.race-percent {
    flex-shrink: 0;
    color: #4fea9f;
    font-size: 11px;
    font-weight: 700;
    min-width: 35px;
    text-align: right;
}

/* Текст "Не играли" */
.race-not-played {
    color: #7c7c7c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* Состояние: checked */
.race-input:checked + .race-label {
    background: linear-gradient(135deg, #2d3e36 0%, #252e29 100%);
    border-color: rgba(79, 234, 159, 0.5);
    box-shadow: 0 0 10px rgba(79, 234, 159, 0.15);
}

.race-input:checked + .race-label .race-check {
    background: linear-gradient(135deg, #4fea9f 0%, #38b87a 100%);
    border-color: #4fea9f;
}

.race-input:checked + .race-label .race-check::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ===================================
   АДАПТИВНОСТЬ
   =================================== */

/* 4 в ряд */
@media (max-width: 1400px) {
    .warcraft-shop-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 в ряд */
@media (max-width: 1199px) {
    .warcraft-shop-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 в ряд */
@media (max-width: 991px) {
    .warcraft-shop-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 в ряд */
@media (max-width: 575px) {
    .warcraft-shop-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   БЛОК ЗАКАЗА
   =================================== */

/* Кнопка "Выбрать все" в header */
.select-all-btn-header {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4fea9f 0%, #38b87a 100%);
    border: none;
    border-radius: 8px;
    color: #1a1a21;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 234, 159, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    position: relative;
}

.select-all-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 234, 159, 0.4);
}

.select-all-btn-header:active {
    transform: translateY(0);
}

.select-all-btn-header i {
    font-size: 16px;
}

/* Бейдж скидки */
.discount-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

/* Обновляем heading_block для flexbox */
.heading_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Форма поиска ника */
.nickname-search-form {
    display: flex;
    gap: 10px;
    padding: 20px;
    align-items: center;
}

.nickname-input {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #25252e 0%, #292932 100%);
    border: 2px solid rgba(79, 234, 159, 0.15);
    border-radius: 10px;
    color: #e8e8e8;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.nickname-input::placeholder {
    color: #666;
}

.nickname-input:focus {
    border-color: rgba(79, 234, 159, 0.5);
    box-shadow: 0 0 10px rgba(79, 234, 159, 0.2);
}

.nickname-search-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #4fea9f 0%, #38b87a 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a21;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 234, 159, 0.3);
    white-space: nowrap;
}

.nickname-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 234, 159, 0.4);
}

.nickname-search-btn:active {
    transform: translateY(0);
}

.race-order-info {
    padding: 15px;
}

.order-text {
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.order-races-list {
    margin-bottom: 15px;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.no-races-selected {
    color: #888;
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.selected-race-item {
    background: linear-gradient(135deg, #2d3e36 0%, #252e29 100%);
    border: 1px solid rgba(79, 234, 159, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    color: #4fea9f;
    font-size: 12px;
    font-weight: 600;
}

.order-summary {
    border-top: 1px solid rgba(79, 234, 159, 0.2);
    padding-top: 15px;
}

.order-count,
.order-discount,
.order-total {
    color: #e8e8e8;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.order-count span,
.order-total span {
    color: #4fea9f;
    font-weight: 700;
}

.order-discount span {
    color: #f7cb15;
    font-weight: 700;
}

.order-buy-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4fea9f 0%, #38b87a 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a21;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 234, 159, 0.3);
}

.order-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 234, 159, 0.4);
}

.order-buy-btn:active {
    transform: translateY(0);
}
/* ===================================
   AMULET STYLES
   =================================== */

/* Бейдж "Уже есть" для талисманов */
.amulet-owned-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

/* Стили для отключенного label талисмана */
.amulet-owned {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #1e1e26 0%, #22222a 100%) !important;
    border-color: rgba(79, 234, 159, 0.05) !important;
}

.amulet-owned:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Стили для отключенного чекбокса талисмана */
.amulet-input:disabled + .race-label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Цена талисмана */
.race-price {
    font-size: 13px;
    color: #4fea9f;
    font-weight: 600;
    margin-top: 2px;
}
