/* banlist.css — стили страницы списка банов (BEM) */

.banlist__wrap {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: hsla(240, 7%, 12%, 0.95);
  box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
}

/* PHP-модуль /modules/banlist/index.php — классы не переименовывать */
.bans {
  height: 0;
  position: relative;
  padding-bottom: 50%;
  height: 90%;
}

.bans iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive embed,
.embed-responsive iframe,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Search bar ─────────────────────────────────────────────────── */

.banlist__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.banlist__search form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.banlist__search input[type="text"] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.2s;
}

.banlist__search input[type="text"]:focus {
    outline: none;
    border-color: rgba(90, 185, 234, 0.5);
}

.banlist__search input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.banlist__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.banlist__btn--search {
    background: rgba(85, 178, 253, 0.10);
    border: 1px solid rgba(85, 178, 253, 0.28);
    color: #55b2fd;
}
.banlist__btn--search: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);
}
.banlist__btn--search: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);
}

.banlist__btn--back {
    background: rgba(90, 185, 234, 0.06);
    border: 1px solid rgba(90, 185, 234, 0.18);
    color: #96afc0;
}
.banlist__btn--back:hover {
    background: rgba(90, 185, 234, 0.15);
    border-color: rgba(90, 185, 234, 0.45);
    color: #fff;
    box-shadow: 0 0 12px rgba(90, 185, 234, 0.25);
    transform: translateY(-1px);
}
.banlist__btn--back:active {
    background: rgba(90, 185, 234, 0.22);
    border-color: rgba(90, 185, 234, 0.65);
    color: #fff;
    transform: translateY(0);
}

/* ── Table wrapper ───────────────────────────────────────────────── */

.banlist__content {
    width: 100%;
    overflow-x: auto;
}

/* ── Table ───────────────────────────────────────────────────────── */

.banlist__table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.banlist__table thead tr {
    border-bottom: 2px solid #4695ed;
}

.banlist__table thead th {
    padding: 12px 10px;
    text-align: center;
    font-size: .82em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5AB9EA;
}

.banlist__table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
}

.banlist__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.banlist__table tbody td {
    padding: 11px 10px;
    font-size: 13.5px;
    text-align: center;
    color: #b3d4fc;
}

/* ── Ban type badges ─────────────────────────────────────────────── */

.banlist__badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.banlist__badge--perm {
    background: rgba(212, 42, 42, 0.18);
    color: #f87171;
    border: 1px solid rgba(212, 42, 42, 0.35);
}

.banlist__badge--temp {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.28);
}

/* ── Mobile ──────────────────────────────────────────────────────── */

@media screen and (max-width: 640px) {
    .banlist__table thead {
        display: none;
    }

    .banlist__table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        padding: 4px 0;
    }

    .banlist__table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 13px;
    }

    .banlist__table tbody td:last-child {
        border-bottom: none;
    }

    .banlist__table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #5AB9EA;
        text-align: left;
        flex-shrink: 0;
        margin-right: 10px;
    }
}
