/* WebCash Custom Styles - Turbinist.ru Theme */
/* БЕЗОПАСНЫЕ стили - только улучшение внешнего вида БЕЗ скрытия элементов */

/* ========================================
   КНОПКИ-ССЫЛКИ (wc-button-link)
   ======================================== */

/* Базовые стили для всех кнопок WebCash */
a.wc-button-link,
button.wc-button-link,
.wc-button-link {
    display: inline-block !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    margin: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

a.wc-button-link:hover,
button.wc-button-link:hover,
.wc-button-link:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
    transform: translateY(-1px);
}

/* Маленькая кнопка */
a.btn-link-small,
.wc-button-link.btn-link-small {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

/* Активная кнопка - синий градиент */
a.wc-button-link.wc-btn-active,
.wc-button-link.wc-btn-active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 3px 8px rgba(29, 78, 216, 0.3) !important;
}

a.wc-button-link.wc-btn-active:hover,
.wc-button-link.wc-btn-active:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4) !important;
}

/* Красная/оранжевая кнопка оплаты */
a.wc-button-link.wc-red,
a.wc-red.btn-link-small,
.wc-button-link.wc-red {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.35) !important;
}

a.wc-button-link.wc-red:hover,
a.wc-red.btn-link-small:hover,
.wc-button-link.wc-red:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.45) !important;
}

/* Синяя кнопка */
a.wc-button-link.wc-blue,
.wc-button-link.wc-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35) !important;
}

a.wc-button-link.wc-blue:hover,
.wc-button-link.wc-blue:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.45) !important;
}

/* Зеленая кнопка */
a.wc-button-link.wc-green,
.wc-button-link.wc-green {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.35) !important;
}

a.wc-button-link.wc-green:hover,
.wc-button-link.wc-green:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: translateY(-2px) !important;
}

/* ========================================
   ТАБЛИЦЫ
   ======================================== */

/* Контейнер для таблицы */
div.wc-limiter {
    margin: 24px 0 !important;
}

div.container-table100 {
    overflow-x: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
}

div.wrap-table100 {
    width: 100% !important;
    min-width: 500px !important;
}

/* Стилизация таблиц WebCash */
div.wc-table {
    width: 100% !important;
    display: table !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

div.wc-table div.wc-row {
    display: table-row !important;
}

/* Заголовок таблицы - синий градиент */
div.wc-table div.wc-row.wc-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

div.wc-table div.wc-row.wc-header div.cell {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 16px 20px !important;
    border: none !important;
    background: transparent !important;
}

/* Ячейки таблицы */
div.wc-table div.cell {
    display: table-cell !important;
    padding: 16px 20px !important;
    color: #374151 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff !important;
}

/* Строки данных */
div.wc-table div.wc-row:not(.wc-header) {
    transition: background-color 0.15s ease !important;
}

div.wc-table div.wc-row:not(.wc-header):hover div.cell {
    background: #f8fafc !important;
}

div.wc-table div.wc-row:not(.wc-header):last-child div.cell {
    border-bottom: none !important;
}

/* Чередование строк */
div.wc-table div.wc-row:not(.wc-header):nth-child(even) div.cell {
    background: #f9fafb !important;
}

div.wc-table div.wc-row:not(.wc-header):nth-child(even):hover div.cell {
    background: #f1f5f9 !important;
}

/* Ссылки в таблице */
div.wc-table div.cell a {
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

div.wc-table div.cell a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* ========================================
   ГЛАВНЫЙ КОНТЕЙНЕР
   ======================================== */

.wc-wrapper,
.wc-main-index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.wc-wrapper h1,
.wc-main-index h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.wc-wrapper h2,
.wc-wrapper h3,
.listtransactions_plugin_wrapper h2,
.payhidecontent_plugin_wrapper h2,
.upbalance_plugin_wrapper h2,
.changegroup_plugin_wrapper h2,
.changegroup_plugin_wrapper h3 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin: 24px 0 16px;
}

/* ========================================
   БЛОК БАЛАНСА
   ======================================== */

.wc-wrapper > .sepH_b:first-of-type,
.wc-main-index > .sepH_b:first-of-type {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.wc-wrapper .sepH_b i,
.wc-main-index .sepH_b i {
    font-style: normal;
    font-size: 18px;
    font-weight: 600;
    color: #1d4ed8;
}

/* ========================================
   СПИСОК КНОПОК МЕНЮ
   ======================================== */

.btn-list-wrapper {
    margin: 20px 0;
}

.btn-list-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-list-wrapper ul li {
    margin: 0;
}

/* ========================================
   ПЛАГИН-ОБЕРТКИ
   ======================================== */

.payhidecontent_plugin_wrapper,
.changegroup_plugin_wrapper,
.listtransactions_plugin_wrapper,
.upbalance_plugin_wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* Ссылка на настройки админки */
.addon_settings {
    margin: 16px 0;
}

.addon_settings a {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.addon_settings a:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ========================================
   ФОРМЫ
   ======================================== */

.webcash_ajax_form,
.wc-wrapper form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-control,
.wc-wrapper input[type="text"],
.wc-wrapper input[type="email"],
.wc-wrapper input[type="number"],
.wc-wrapper select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1f2937;
}

.form-control:focus,
.wc-wrapper input:focus,
.wc-wrapper select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Контейнер кнопки отправки */
.form_submit {
    margin-top: 24px;
}

/* Большая кнопка */
.btn.btn-big,
button.btn.btn-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn.btn-big:hover,
button.btn.btn-big:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
}

/* ========================================
   ОТСТУПЫ И РАЗДЕЛИТЕЛИ
   ======================================== */

.sepH_b {
    margin-bottom: 20px;
}

.sepV_c {
    margin-right: 10px;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* ========================================
   СТРАНИЦА ОПЛАТЫ CHECKOUT
   ======================================== */

.gateways_block {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.gateways_block h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* ========================================
   КНОПКА ОТПРАВКИ ФОРМЫ
   ======================================== */

.wc-wrapper button[type="submit"],
.wc-wrapper input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.wc-wrapper button[type="submit"]:hover,
.wc-wrapper input[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
}

/* ========================================
   ТАРИФНЫЕ ПЛАНЫ
   ======================================== */

.changegroup_plugin_wrapper .group_payment_tariff {
    display: inline-block;
    margin: 8px;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.changegroup_plugin_wrapper .group_payment_tariff:hover {
    border-color: #93c5fd;
}

.changegroup_plugin_wrapper .group_payment_tariff.selected,
.changegroup_plugin_wrapper input[type="radio"]:checked + label {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================== */

@media (max-width: 768px) {
    /* Кнопки на мобильных */
    .wc-button-link {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 8px 0 !important;
    }
    
    .btn-list-wrapper ul {
        flex-direction: column !important;
    }
    
    /* Таблицы на мобильных - карточный вид */
    div.wrap-table100 {
        min-width: auto !important;
    }
    
    div.wc-table {
        display: block !important;
    }
    
    div.wc-table div.wc-row.wc-header {
        display: none !important;
    }
    
    div.wc-table div.wc-row:not(.wc-header) {
        display: block !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    
    div.wc-table div.wc-row:not(.wc-header) div.cell {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
        background: transparent !important;
    }
    
    div.wc-table div.wc-row:not(.wc-header) div.cell::before {
        content: attr(data-title) !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
        margin-right: 12px !important;
    }
    
    div.wc-table div.wc-row:not(.wc-header) div.cell:last-child {
        border-bottom: none !important;
    }
    
    /* Плагин-обертки на мобильных */
    .payhidecontent_plugin_wrapper,
    .changegroup_plugin_wrapper,
    .listtransactions_plugin_wrapper,
    .upbalance_plugin_wrapper {
        padding: 16px !important;
        margin: 12px 0 !important;
    }
}

/* ========================================
   БЛОК ПЛАТНОГО КОНТЕНТА (payhide)
   Сообщение "Необходимо оплатить..."
   ======================================== */

/* Основной класс для сообщения о платном контенте */
.wc-payhide-alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 15px;
    font-weight: 500;
    color: #92400e;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.wc-payhide-alert::before {
    content: "🔒";
    font-size: 28px;
    flex-shrink: 0;
}

/* Ссылка на оплату внутри блока */
.wc-payhide-alert a,
.wc-payhide-alert .wc-button-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.35);
    margin: 0 4px;
}

.wc-payhide-alert a:hover,
.wc-payhide-alert .wc-button-link:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.45);
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .wc-payhide-alert {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .wc-payhide-alert::before {
        margin-bottom: 8px;
    }
    
    .wc-payhide-alert a {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
}
