/* ============================================================
   ThinkAndFilm — Admin Content List styles
   /public/assets/css/contentlist.css
 
   Shares the same visual language as admin-content.css
   (colors, radius, spacing) but styles the table/list view.
   ============================================================ */
 
   .admin-content-list {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 60px;
}
 
.admin-content-list h1 {
    font-size: var(--font-size-heading);
    font-weight: var(--font-extra-bold);
    margin-bottom: 24px;
}
 
/* ------------------------------------------------------------
   Status messages (shared naming with admin-content.css)
   ------------------------------------------------------------ */
 
.admin-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
 
.admin-error {
    background: #fdecea;
    color: #a3231b;
    border: 1px solid #f2b8b5;
}
 
.admin-success {
    background: #eaf7ed;
    color: #1e7a34;
    border: 1px solid #b7e3c1;
}
 
/* ------------------------------------------------------------
   Toolbar — filter + "new content" button
   ------------------------------------------------------------ */
 
.content-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
 
/* ------------------------------------------------------------
   Type filter — segmented radio control
   ------------------------------------------------------------ */
 
.content-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
 
.content-filter {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}
 
.content-filter-option {
    position: relative;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: var(--font-extra-bold);
    color: var(--color-dark);
    background: var(--color-light);
    cursor: pointer;
    user-select: none;
    border-right: 1px solid #ccc;
    transition: background 0.15s ease, color 0.15s ease;
}
 
.content-filter-option:last-child {
    border-right: none;
}
 
.content-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
 
.content-filter-option:hover {
    background: #f5f0f8;
}
 
.content-filter-option:has(input:checked) {
    background: var(--color-links);
    color: var(--color-light);
}
 
/* Fallback for browsers without :has() support --------------- */
.content-filter-option.is-active {
    background: var(--color-links);
    color: var(--color-light);
}
 
/* ------------------------------------------------------------
   Small button variant (New Content)
   ------------------------------------------------------------ */
 
.cms-save-btn--small {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
}
 
/* ------------------------------------------------------------
   Table
   ------------------------------------------------------------ */
 
.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
 
.content-table thead th {
    text-align: left;
    padding: 12px 14px;
    background: #faf8fb;
    border-bottom: 2px solid #e0e0e0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}
 
.content-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
}
 
.content-table tbody tr:hover {
    background: #faf8fb;
}
 
.content-table-empty {
    text-align: center;
    padding: 40px 0;
    color: #888;
}
 
.content-table-featured {
    text-align: center;
    color: #c8a415;
    font-size: 16px;
}
 
/* ------------------------------------------------------------
   Badges — type / status
   ------------------------------------------------------------ */
 
.type-badge,
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: var(--font-extra-bold);
    white-space: nowrap;
}
 
.type-badge--project {
    background: #eef1fb;
    color: #3a4ba0;
}
 
.type-badge--article {
    background: #f4eefb;
    color: #7a3ba0;
}
 
.status-badge--draft {
    background: #f3f3f3;
    color: #777;
}
 
.status-badge--published {
    background: #eaf7ed;
    color: #1e7a34;
}
 
/* ------------------------------------------------------------
   Row action buttons
   ------------------------------------------------------------ */
 
.table-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: var(--font-extra-bold);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
 
.table-btn--edit {
    background: var(--color-links);
    color: var(--color-light);
}
 
.table-btn--edit:hover {
    background: var(--color-lnkhvr);
}
 
.table-btn--delete {
    background: #fdecea;
    color: #a3231b;
}
 
.table-btn--delete:hover {
    background: #f7cfc9;
}
 
.table-delete-form {
    margin: 0;
}
 
/* ------------------------------------------------------------
   Small screens — let the table scroll instead of squeezing
   ------------------------------------------------------------ */
 
@media (max-width: 720px) {
 
    .content-table-wrapper,
    .content-table {
        display: block;
        overflow-x: auto;
    }
}