/* ================================================================
   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;
}

.pun-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Авторизация ── */
.pun-auth-bar {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pun-auth-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pun-auth-hint {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.pun-auth-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pun-auth-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.pun-auth-avatar-letter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.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-tg {
    background: #29a9eb;
    color: #fff;
}

.pun-btn-vk {
    background: #0077ff;
    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-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pun-filter {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}

.pun-filter:hover,
.pun-filter.active {
    background: rgba(102, 126, 234, 0.35);
    border-color: #667eea;
    color: #fff;
}

/* ── Список карточек ── */
.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--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-card-header {
        flex-wrap: wrap;
    }

    .pun-card-dates {
        text-align: left;
    }

    .pun-filters {
        gap: 6px;
    }

    .pun-filter {
        padding: 6px 12px;
        font-size: 12px;
    }
}