/* ── VMI Bulletin Frontend ───────────────────────────────────────────────────
   Filter bar reuses .vmig-filter-bar and .vmig-filter-field from the
   Groups Add-On so the filter looks identical across all pages.
   ───────────────────────────────────────────────────────────────────────────*/

html { scroll-behavior: smooth; }

.vmib-board {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Filter inputs ───────────────────────────────────────────────────────────*/

.vmib-text-input,
.vmib-date-input {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

/* Make filter fields grow to fill full width */
.vmib-board .vmig-filter-bar .vmig-filter-field {
    flex: 1;
}

/* ── Notice cards ────────────────────────────────────────────────────────────*/

.vmib-notice {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.vmib-notice:hover {
    border-color: #B39DD9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vmib-notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.vmib-notice-title {
    color: #8B6BA8;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.vmib-notice-category {
    background: linear-gradient(135deg, #8B6BA8 0%, #B39DD9 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.vmib-notice-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.vmib-notice-content {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.vmib-notice-content p:last-child { margin-bottom: 0; }

.vmib-notice-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* ── Empty state ─────────────────────────────────────────────────────────────*/

.vmib-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 12px;
}

.vmib-empty::before {
    content: "📢";
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ── Mobile ──────────────────────────────────────────────────────────────────*/

@media (max-width: 600px) {
    .vmib-board .vmig-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .vmib-board .vmig-filter-field,
    .vmib-text-input,
    .vmib-date-input {
        min-width: 0;
        width: 100%;
    }

    .vmib-board .vmig-filter-reset {
        width: 100%;
    }

    .vmib-notice { padding: 20px; }
    .vmib-notice-title { font-size: 18px; }
}
