/* ================================================================
   punishments.css — Страница нарушений HypeGO
   ================================================================ */

.pun-slide {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
    overflow-x: hidden;
    display: block !important;
}

.pun-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}


.pun-avatar-container.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #6c5ce7;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pun-spin 1s linear infinite;
    z-index: 5;
}

@keyframes pun-spin {
    to {
        transform: rotate(360deg);
    }
}

.pun-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pun-auth-name {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pun-user-actions {
    display: flex;
    gap: 8px;
}

/* ── Авторизация ── */
.pun-auth-bar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 40px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pun-auth-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.pun-avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.pun-avatar-container:hover {
    transform: scale(1.05);
    border-color: #6c5ce7;
}

.pun-auth-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pun-auth-avatar-letter {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pun-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 20px;
}

.pun-auth-form-wrap {
    flex: 1;
    min-width: 320px;
}

.pun-auth-form {
    width: 100%;
}

.pun-form-group-row {
    display: flex;
    gap: 12px;
    align-items: center;
    /* Центрирование по вертикали */
    flex-wrap: wrap;
}

.pun-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
    height: 42px;
    /* Фиксированная высота для выравнивания */
}

.pun-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    pointer-events: none;
    transition: color .2s;
}

.pun-input-wrapper input {
    width: 100%;
    height: 100%;
    /* Заполняем высоту обертки */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 0 14px 0 40px;
    /* Убрал вертикальные padding для центрирования через height/line-height */
    outline: none;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pun-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pun-input-wrapper input:focus+.pun-input-icon {
    color: #667eea;
}

.pun-auth-error {
    color: #ff7675;
    font-size: 12px;
    margin-top: 8px;
    min-height: 18px;
    font-weight: 500;
}

.pun-auth-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    max-width: 280px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}


/* ── Кнопки ── */
.pun-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    /* Убрал вертикальные padding */
    height: 42px;
    /* Такая же высота, как у инпутов */
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pun-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pun-btn:active {
    transform: translateY(0);
}

.pun-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pun-btn-primary:hover {
    background: linear-gradient(135deg, #7189ef 0%, #8555b9 100%);
}

.pun-auth-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.pun-auth-avatar-letter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.pun-auth-name {
    font-weight: 600;
    font-size: 15px;
}

/* ── Кнопки ── */
.pun-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s, transform .15s;
}

.pun-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.pun-btn:active {
    transform: scale(.97);
}

.pun-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.pun-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.pun-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pun-btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    margin-left: auto;
}

/* ── Фильтры ── */
/* ── Поиск по нику ── */
.pun-search-wrap {
    margin-bottom: 16px;
}

.pun-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.pun-search-icon {
    position: absolute;
    left: 14px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    pointer-events: none;
}

.pun-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    padding: 10px 40px 10px 38px;
    outline: none;
    transition: border-color .2s, background .2s;
}

.pun-search-input:focus {
    border-color: rgba(102, 126, 234, 0.7);
    background: rgba(255, 255, 255, 0.10);
}

.pun-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.pun-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    display: none;
    line-height: 1;
}

.pun-search-clear:hover {
    color: rgba(255, 255, 255, 0.7);
}

.pun-search-input:not(:placeholder-shown)+.pun-search-clear,
.pun-search-clear.visible {
    display: block;
}

.pun-search-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    padding: 4px 2px 0;
    min-height: 18px;
}

.pun-card--search-hidden {
    display: none !important;
}

.pun-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.pun-filters::-webkit-scrollbar {
    height: 4px;
}

.pun-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.pun-filter {
    padding: 10px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pun-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.pun-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ── Список карточек ── */
.pun-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Карточка нарушения ── */
.pun-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.pun-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.pun-card--active {
    border-left: 3px solid #e74c3c;
}

.pun-card--expired {
    border-left: 3px solid rgba(255, 255, 255, 0.18);
    opacity: .75;
}

.pun-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.pun-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.pun-card-info {
    flex: 1;
    min-width: 0;
}

.pun-card-nick {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pun-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.pun-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.pun-badge--ban {
    background: rgba(231, 76, 60, .25);
    color: #ff7675;
    border: 1px solid rgba(231, 76, 60, .4);
}

.pun-badge--mute {
    background: rgba(243, 156, 18, .2);
    color: #fdcb6e;
    border: 1px solid rgba(243, 156, 18, .35);
}

.pun-badge--kick {
    background: rgba(46, 204, 113, .15);
    color: #55efc4;
    border: 1px solid rgba(46, 204, 113, .3);
}

.pun-badge--warn {
    background: rgba(155, 89, 182, .15);
    color: #a29bfe;
    border: 1px solid rgba(155, 89, 182, .3);
}

.pun-badge--jail {
    background: rgba(44, 62, 80, .4);
    color: #b2bec3;
    border: 1px solid rgba(52, 73, 94, .5);
}

.pun-badge--report {
    background: rgba(253, 203, 110, .15);
    color: #ffeaa7;
    border: 1px solid rgba(253, 203, 110, .3);
}

.pun-card-punisher {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.pun-card-dates {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.6;
    flex-shrink: 0;
}

.pun-label {
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
}

.pun-card-reason {
    padding: 0 18px 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.pun-comments-summary {
    display: flex;
    flex-direction: column;
}

.pun-comments-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 18px;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color .2s, background .2s;
}

.pun-comments-toggle:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.pun-toggle-arrow {
    margin-left: auto;
    transition: transform .3s;
}

.pun-comments-toggle.open .pun-toggle-arrow {
    transform: rotate(180deg);
}

.pun-comments-count {
    background: rgba(102, 126, 234, 0.4);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 2px;
}

.pun-first-comment {
    padding: 0 18px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    border-top: 1px dashed rgba(255, 255, 255, .05);
    margin-top: -4px;
}

.pun-fc-author {
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}

.pun-fc-text {
    line-height: 1.4;
    word-break: break-word;
}


/* ── Раздел комментариев ── */
.pun-comments-section {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 16px 18px;
    background: rgba(0, 0, 0, .15);
}

.pun-comments-loading {
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
    padding: 8px 0;
}

.pun-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.pun-comment {
    display: flex;
    gap: 10px;
}

.pun-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pun-comment-avatar-letter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.pun-comment-body {
    flex: 1;
    min-width: 0;
}

.pun-comment-author {
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
}

.pun-comment-provider {
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    margin-left: 5px;
}

.pun-comment-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.55;
    padding-top: 3px;
    word-break: break-word;
}

.pun-comment-date {
    font-size: 11px;
    color: rgba(255, 255, 255, .35);
    padding-top: 3px;
}

.pun-comment-media {
    margin-top: 8px;
}

.pun-comment-media img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s;
}

.pun-comment-media img:hover {
    opacity: .88;
}

.pun-comment-drive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .08);
    color: #8fd3ff;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s;
}

.pun-comment-drive-link:hover {
    background: rgba(255, 255, 255, .15);
}

.pun-no-comments {
    color: rgba(255, 255, 255, .35);
    font-size: 13px;
    padding: 4px 0 8px;
}

/* ── Форма комментария ── */
.pun-comment-form {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 14px;
}

.pun-comment-form-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pun-comment-form-row+.pun-comment-form-row {
    padding-top: 10px;
}

.pun-comment-text {
    width: 100%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}

.pun-comment-text:focus {
    border-color: #667eea;
}

.pun-comment-text::placeholder {
    color: rgba(255, 255, 255, .3);
}

.pun-comment-form-actions {
    flex-wrap: wrap;
    align-items: center;
}

.pun-file-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    cursor: pointer;
    transition: color .2s;
}

.pun-file-label:hover {
    color: #fff;
}

.pun-file-name {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pun-comment-preview img,
.pun-comment-preview video {
    margin-top: 10px;
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
}

.pun-auth-required {
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 4px;
}

/* ── Пустое состояние ── */
.pun-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, .5);
}

.pun-empty-icon {
    font-size: 48px;
    padding-bottom: 16px;
}

.pun-empty-text {
    font-size: 16px;
}

/* ── Адаптив ── */
@media (max-width: 600px) {
    .pun-slide {
        padding-top: 60px;
    }

    .pun-container {
        padding: 0 12px;
    }

    .pun-auth-bar {
        width: 100%;
        padding: 24px 15px;
        border-radius: 12px;
        flex-direction: column;
        gap: 16px;
    }

    .pun-avatar-container {
        width: 90px;
        height: 90px;
    }

    .pun-form-group-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .pun-input-wrapper {
        width: 100%;
        min-width: 0;
    }

    .pun-login-submit {
        width: 100%;
    }

    .pun-auth-hint {
        max-width: 100%;
        text-align: center;
        margin-top: 12px;
        font-size: 12px;
    }

    .pun-search-box {
        padding: 0 15px;
        height: 48px;
    }

    .pun-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pun-card-dates {
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 8px;
        display: flex;
        justify-content: space-between;
    }

    .pun-filters {
        gap: 8px;
        margin: 0 -12px 20px;
        padding: 0 12px 12px;
    }

    .pun-filter {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 12px;
    }

    .pun-card-punisher {
        display: block;
        margin-top: 4px;
    }

    .slide-name {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }
}