/**
 * LR WEB - module_page_profiles_unban
 * Стилі плашки бану, модального вікна та адмін-панелі модерації
 */

/* ========================================================
   1. Плашка бану на сторінці профілю
   ======================================================== */
.unban-banned-plaque {
    margin-top: 10px;
    margin-bottom: 8px;
    background: linear-gradient(145deg, rgba(186, 0, 0, 0.22), rgba(28, 34, 38, 0.95));
    border: 1px solid rgba(244, 67, 54, 0.45);
    border-radius: 6px;
    padding: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(186, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.unban-banned-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d32f2f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
    margin-bottom: 8px;
}

.unban-banned-info-rows {
    font-size: 13px;
    color: var(--span-color, #e0e0e0);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.unban-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 3px;
}

.unban-info-row:last-child {
    border-bottom: none;
}

.unban-info-title {
    color: #9e9e9e;
    font-size: 12px;
}

.unban-info-data {
    font-weight: 500;
    text-align: right;
}

.unban-price-text {
    color: #81c784;
    font-weight: 700;
    font-size: 14px;
}

/* Кнопка розбану */
.btn-buy-unban {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

.btn-buy-unban:hover {
    background: linear-gradient(135deg, #388e3c 0%, #43a047 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-buy-unban:active {
    transform: translateY(0);
}

/* Повідомлення про очікування модерації на профілі */
.unban-pending-notice-box {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid #ff9800;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    color: #ffb74d;
    font-size: 12px;
}

.unban-admin-link-badge {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 4px;
    transition: 0.2s ease;
}

.unban-admin-link-badge:hover {
    background: linear-gradient(135deg, #ef6c00, #f57c00);
    transform: scale(1.03);
}

/* ========================================================
   2. Модальне вікно купівлі розбану
   ======================================================== */
.unban-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.unban-modal-box {
    background: #1c2226;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    padding: 22px;
    animation: unbanFadeIn 0.25s ease-out;
}

@keyframes unbanFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.unban-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.unban-modal-close {
    font-size: 26px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.unban-modal-close:hover {
    color: #fff;
}

.unban-modal-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #151a1e;
    padding: 14px;
    border-radius: 6px;
    margin: 15px 0;
}

.unban-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.unban-info-label {
    color: #888;
}

.unban-info-val {
    color: #eee;
    font-weight: 500;
}

.unban-price-highlight {
    background: rgba(129, 199, 132, 0.1);
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid #81c784;
}

.unban-terms-alert {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.35);
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
}

.unban-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.unban-btn-cancel {
    background: #37474f;
    border: none;
    color: #cfd8dc;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.unban-btn-cancel:hover {
    background: #455a64;
    color: #fff;
}

.unban-btn-submit {
    background: #2e7d32;
    border: none;
    color: #fff;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.unban-btn-submit:hover:not(:disabled) {
    background: #388e3c;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.unban-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================================
   3. Адмін-панель модерації розбанів
   ======================================================== */
.unban-tabs {
    display: flex;
    gap: 8px;
}

.unban-tab-btn {
    background: #263238;
    color: #cfd8dc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.unban-tab-btn:hover {
    background: #37474f;
    color: #fff;
}

.unban-tab-btn.active {
    background: #0288d1;
    color: #fff;
    border-color: #0288d1;
}

.unban-stat-card {
    border-radius: 6px;
    transition: transform 0.2s;
}

.unban-stat-card:hover {
    transform: translateY(-2px);
}

.unban-pulse-badge {
    background: #d32f2f;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    animation: unbanPulse 1.5s infinite;
}

@keyframes unbanPulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.unban-status-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.badge-approved {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.badge-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

/* ========================================================
   4. Адмінське налаштування (повзунок) та екран тех. робіт
   ======================================================== */
.unban-admin-setting-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1c2226;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 10px;
    transition: all 0.25s ease;
}

.unban-admin-setting-pill.is-active {
    background: rgba(244, 67, 54, 0.16);
    border-color: rgba(255, 82, 82, 0.55);
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.25);
}

.unban-admin-settings-trigger {
    background: transparent;
    border: none;
    color: #cfd8dc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 2px;
    transition: color 0.2s;
}

.unban-admin-settings-trigger:hover {
    color: #ff9800;
}

.unban-admin-setting-pill.is-active .unban-admin-settings-trigger {
    color: #ff8a80;
}

/* Повзунок (Toggle Switch) */
.unban-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
}

.unban-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.unban-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #37474f;
    transition: 0.28s;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.unban-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.28s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.unban-switch input:checked + .unban-slider {
    background: linear-gradient(135deg, #e53935, #ff7043);
    border-color: rgba(255, 138, 128, 0.5);
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.45);
}

.unban-switch input:checked + .unban-slider:before {
    transform: translateX(18px);
}

.unban-switch input:disabled + .unban-slider {
    opacity: 0.6;
    cursor: wait;
}

.unban-switch-lg {
    width: 52px;
    height: 28px;
}

.unban-switch-lg .unban-slider:before {
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
}

.unban-switch-lg input:checked + .unban-slider:before {
    transform: translateX(24px);
}

/* Банер для адміна коли увімкнені тех. роботи */
.unban-admin-maintenance-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.18), rgba(255, 152, 0, 0.14));
    border: 1px solid rgba(255, 82, 82, 0.5);
    border-left: 4px solid #ff5252;
    border-radius: 6px;
    padding: 12px 16px;
    color: #ffe0b2;
    font-size: 13px;
}

.unban-maintenance-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unban-maintenance-banner-left i {
    font-size: 20px;
    color: #ff8a80;
}

.unban-banner-disable-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.unban-banner-disable-btn:hover {
    background: #388e3c;
}

/* Картка всередині модалки налаштувань */
.unban-admin-setting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #151a1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 16px;
}

/* Заглушка для користувачів під час тех. робіт */
.unban-maintenance-card {
    max-width: 620px;
    margin: 40px auto;
    background: #1c2226;
    border: 1px solid rgba(255, 152, 0, 0.35);
    border-top: 4px solid #ff9800;
    border-radius: 8px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.unban-maintenance-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background: rgba(255, 152, 0, 0.14);
    border: 1px solid rgba(255, 152, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb74d;
    font-size: 34px;
}

.unban-maintenance-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.unban-maintenance-desc {
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #b0bec5;
}

.unban-maintenance-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0288d1;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.unban-maintenance-home-btn:hover {
    background: #039be5;
}
