/* ===== РАЗДЕЛ УПРАВЛЕНИЯ ПУБЛИКАЦИЯМИ ===== */

.publications-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== ФИЛЬТРЫ ===== */

.filter-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.filter-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: var(--text-primary);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #dbeafe;
}

/* ===== ТАБЛИЦА ===== */

.publications-table {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.publications-table table {
    width: 100%;
    border-collapse: collapse;
}

.publications-table thead {
    background: #f3f4f6;
    border-bottom: 1px solid var(--border);
}

.publications-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publications-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.publications-table tbody tr:hover {
    background: var(--light);
}

/* Последняя строка */
.publications-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== ЧЕКБОКСЫ ===== */

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-all {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 12px;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* ===== СТАТУСЫ ===== */

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status.published {
    background: #dcfce7;
    color: var(--success);
}

.status.unpublished {
    background: var(--light);
    color: var(--text-secondary);
}

/* ===== БЕЙДЖИ ===== */

.project-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    background: #dbeafe;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */

.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-view {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-view:hover {
    background: #eff6ff;
}

.btn-publish {
    background: var(--success);
    color: white;
}

.btn-publish:hover {
    background: #15803d;
}

.btn-unpublish {
    background: #fee2e2;
    color: var(--danger);
    border: none;
}

.btn-unpublish:hover {
    background: #fecaca;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .publications-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .publications-table th {
        padding: 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .publications-table {
        font-size: 12px;
        overflow-x: auto;
    }

    .publications-table th,
    .publications-table td {
        padding: 8px;
    }

    /* Скрыть некоторые колонки на мобильных */
    .publications-table th:nth-child(4),
    .publications-table td:nth-child(4),
    .publications-table th:nth-child(5),
    .publications-table td:nth-child(5) {
        display: none;
    }

    .actions .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .publications-table th:nth-child(3),
    .publications-table td:nth-child(3),
    .publications-table th:nth-child(6),
    .publications-table td:nth-child(6) {
        display: none;
    }

    .actions {
        flex-direction: column;
        gap: 4px;
    }

    .actions .btn {
        width: 100%;
        justify-content: center;
    }
}