/**
 * CIPC Notices - Frontend Styles
 */

.cipc-notices-wrapper {
    margin: 1.5em 0;
    max-width: 100%;
}

.cipc-notices-filters {
    margin-bottom: 1.25em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}

.cipc-notices-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.cipc-notices-filters label {
    font-weight: 600;
}

.cipc-notice-category-filter,
.cipc-notice-year-filter {
    padding: 0.5em 1em;
    min-width: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.cipc-notice-category-filter {
    min-width: 200px;
}

/* Standalone filter wrapper */
.cipc-notices-filter-wrap {
    margin: 1.5em 0;
}

.cipc-notices-filter-wrap .cipc-notices-filters {
    margin-bottom: 0;
}

/* Button-style filter */
.cipc-notices-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.cipc-notices-filter-btn {
    display: inline-block;
    padding: 0.5em 1em;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.95em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cipc-notices-filter-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.cipc-notices-filter-btn.active {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.cipc-notices-table-wrap {
    overflow-x: auto;
}

.cipc-notices-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.cipc-notices-table thead {
    background: #9cca92;
    color: #fff;
}

.cipc-notices-table th {
    padding: 0.875em 1em;
    text-align: left;
    font-weight: 600;
    color: #fff;
}

.cipc-notices-table td {
    padding: 0.75em 1em;
    border-bottom: 1px solid #eee;
}

.cipc-notices-table tbody tr:nth-child(even) {
    background: #e8f3e7;
}

.cipc-notices-table tbody tr:hover {
    background: #c8e5c4;
}

.cipc-notices-table tbody tr:last-child td {
    border-bottom: none;
}

.cipc-notices-table a {
    color: #3498db;
    text-decoration: none;
}

.cipc-notices-table a:hover {
    text-decoration: underline;
}

/* Responsive - stack on small screens */
@media screen and (max-width: 600px) {
    .cipc-notices-table thead {
        display: none;
    }

    .cipc-notices-table tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 0.5em;
    }

    .cipc-notices-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5em 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .cipc-notices-table td:last-child {
        border-bottom: none;
    }

    .cipc-notices-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1em;
        flex-shrink: 0;
    }

    .cipc-notices-table td[data-label]:empty::after {
        content: '—';
        color: #999;
    }
}
