/* ============================================
   Verenigingsmanager Feed – Styles
   ============================================ */

/* ── Widget title ── */
.vmf-widget-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0FB7A1;
    margin: 0 0 1rem;
}

/* ─────────────────────────────────────────────
   CALENDAR — layout
   ───────────────────────────────────────────── */

/* ── Cards grid ── */
.vmf-events-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vmf-event-card {
    position: relative;
    background: #fff;
    border: 2px solid #152739;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 44px rgba(0,0,0,.1);
    transition: transform 0.15s, box-shadow 0.15s;
}

.vmf-event-card:has(.vmf-card-link):hover {
    box-shadow: 0 2px 25px rgba(0,0,0,.2);
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .vmf-event-card:has(.vmf-card-link):hover {
        transform: none;
    }
}

.vmf-card-link {
    position: absolute;
    inset: 0;
    border-radius: 5px;
    z-index: 1;
}

.vmf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.vmf-card-location {
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #005698;
}

.vmf-card-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.625rem;
    font-weight: 500;
    color: #152739;
    margin: 0;
    line-height: 1.3;
}

.vmf-card-excerpt {
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 200;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

/* ── Badges ── */
.vmf-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.vmf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: capitalize;
    padding: 4px 15px;
    border-radius: 5px;
    line-height: 1.4;
    white-space: nowrap;
    color: #FDFDFD;
}

.vmf-badge-date {
    background: #005698;
}

.vmf-badge-time {
    background: #0FB7A1;
}

.vmf-clock-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   NEWS
   ───────────────────────────────────────────── */

.vmf-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.vmf-news-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.875rem;
    font-weight: 500;
    color: #005698;
    margin: 0 0 8px;
    line-height: 1.3;
}

.vmf-news-title a {
    color: #005698;
    text-decoration: none;
    transition: color 0.15s;
}

.vmf-news-title a:hover {
    color: #0FB7A1;
}

.vmf-news-date {
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7f92;
    margin-bottom: 8px;
}

.vmf-news-excerpt {
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 200;
    color: #000;
    margin: 0 0 10px;
    line-height: 1.6;
}

.vmf-read-more {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #005698;
    text-decoration: none;
    transition: color 0.15s;
}

.vmf-read-more:hover {
    color: #0FB7A1;
}

/* ── News highlight (latest item) ── */
.vmf-news-highlight {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 44px rgba(0,0,0,.1);
    transition: transform 0.15s, box-shadow 0.15s;
}

.vmf-news-highlight:has(.vmf-card-link):hover {
    box-shadow: 0 2px 25px rgba(0,0,0,.2);
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .vmf-news-highlight:has(.vmf-card-link):hover {
        transform: none;
    }
}

.vmf-news-highlight-image {
    aspect-ratio: 16 / 9;
    background-color: #152739;
    background-size: cover;
    background-position: center;
}

.vmf-news-highlight-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.vmf-news-highlight-content .vmf-news-title,
.vmf-news-highlight-content .vmf-news-date,
.vmf-news-highlight-content .vmf-news-excerpt {
    margin: 0;
}

/* ── Pagination ── */
.vmf-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.vmf-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 2px solid #152739;
    border-radius: 5px;
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #152739;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

a.vmf-page-num:hover {
    border-color: #0FB7A1;
    color: #0FB7A1;
}

.vmf-page-num.is-current {
    background: #005698;
    border-color: #005698;
    color: #FDFDFD;
}

/* ── Meer Nieuws: compacte variant ── */
.vmf-news--more .vmf-news-title {
    font-size: 1.25rem;
}

/* ── Dark background variant ── */
.vmf-news--dark .vmf-news-title,
.vmf-news--dark .vmf-news-title a {
    color: #FDFDFD;
}

.vmf-news--dark .vmf-news-title a:hover {
    color: #0FB7A1;
}

.vmf-news--dark .vmf-news-date {
    color: #B8C7D4;
}

.vmf-news--dark .vmf-news-excerpt {
    color: rgba(253,253,253,.85);
}

.vmf-news--dark .vmf-read-more {
    color: #0FB7A1;
}

.vmf-news--dark .vmf-read-more:hover {
    color: #FDFDFD;
}

.vmf-news--dark .vmf-page-num {
    border-color: #FDFDFD;
    color: #FDFDFD;
}

.vmf-news--dark a.vmf-page-num:hover {
    border-color: #0FB7A1;
    color: #0FB7A1;
}

/* ─────────────────────────────────────────────
   DETAIL PAGES (news & calendar)
   ───────────────────────────────────────────── */

.vmf-news-detail,
.vmf-calendar-detail {
    max-width: 760px;
}

.vmf-detail-header {
    margin-bottom: 2rem;
}

.vmf-detail-date {
    color: #0FB7A1;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.vmf-detail-title {
    font-family: "Outfit", sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #005698;
    margin: 10px 0 12px;
    line-height: 1.2;
}

.vmf-detail-excerpt {
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    color: #555;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

.vmf-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.vmf-detail-body {
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 200;
    line-height: 1.6;
    color: #000;
    margin-bottom: 2rem;
}

.vmf-detail-body h2,
.vmf-detail-body h3,
.vmf-detail-body h4 {
    font-family: "Outfit", sans-serif;
    color: #005698;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.vmf-detail-body a {
    color: #0FB7A1;
}

.vmf-detail-body a:hover {
    color: #0a8a7a;
}

.vmf-detail-attachments {
    background: #f4f8fa;
    border-left: 4px solid #0FB7A1;
    padding: 16px 20px;
    border-radius: 0 5px 5px 0;
    margin-bottom: 2rem;
}

.vmf-detail-attachments h3 {
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    margin: 0 0 8px;
    color: #152739;
}

.vmf-detail-attachments ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vmf-detail-attachments li {
    margin-bottom: 4px;
}

.vmf-detail-attachments a {
    color: #0FB7A1;
    text-decoration: none;
    font-size: 0.9rem;
}

.vmf-detail-attachments a:hover {
    text-decoration: underline;
}

.vmf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Outfit", sans-serif;
    color: #6b7f92;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.vmf-back-link:hover {
    color: #0FB7A1;
}

/* ─────────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────────── */

.vmf-empty {
    padding: 24px;
    background: #f4f8fa;
    border-radius: 6px;
    text-align: center;
    color: #6b7f92;
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   FULL CALENDAR (month grid)
   ───────────────────────────────────────────── */

.vmf-full-calendar {
    font-family: "Outfit", sans-serif;
}

/* Navigation */
.vmf-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 16px;
    gap: 12px;
    max-width: var(--vmf-cal-width, 500px);
}

.vmf-cal-month-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.625rem;
    font-weight: 500;
    color: #152739;
    margin: 0;
    text-align: center;
    flex: 1;
}

.vmf-cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f4f7;
    color: #152739;
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.vmf-cal-nav-btn:hover {
    background: #0FB7A1;
    color: #fff;
}

/* Grid */
.vmf-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 0 auto 24px;
    max-width: var(--vmf-cal-width, 500px);
}

.vmf-cal-header {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7f92;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 0;
}

.vmf-cal-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #152739;
    position: relative;
    gap: 3px;
}

.vmf-cal-empty {
    background: transparent;
}

.vmf-cal-day {
    background: #f4f8fa;
}

.vmf-cal-today {
    background: #e8f7f5;
    color: #0a8a7a;
    font-weight: 700;
}

.vmf-cal-today .vmf-cal-day-num {
    color: #0a8a7a;
}

.vmf-has-events {
    cursor: pointer;
    background: #fff;
    border: 2px solid #152739;
    box-shadow: 0 4px 44px rgba(0,0,0,.1);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.vmf-has-events:hover {
    border-color: #0FB7A1;
    box-shadow: 0 2px 25px rgba(0,0,0,.2);
}

.vmf-cal-selected {
    background: #0FB7A1 !important;
    border-color: #0FB7A1 !important;
    color: #fff;
}

.vmf-cal-selected .vmf-cal-day-num {
    color: #fff;
}

.vmf-cal-selected .vmf-cal-dot {
    background: rgba(255,255,255,.7);
}

.vmf-cal-day-num {
    font-size: 0.85rem;
    line-height: 1;
}

.vmf-cal-dots {
    display: flex;
    gap: 3px;
}

.vmf-cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0FB7A1;
    flex-shrink: 0;
}

/* ── Day tooltip (hover on days with events) ── */
.vmf-cal-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    min-width: 140px;
    max-width: 220px;
    background: #152739;
    border-radius: 5px;
    padding: 8px 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    font-family: "Outfit", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: #FDFDFD;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
}

.vmf-cal-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #152739;
}

.vmf-cal-tooltip-item {
    display: block;
}

.vmf-cal-tooltip-item + .vmf-cal-tooltip-item {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,.2);
}

.vmf-has-events:hover .vmf-cal-tooltip,
.vmf-has-events:focus-visible .vmf-cal-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Hide tooltip on the selected day — its events are already shown in the list */
.vmf-cal-selected .vmf-cal-tooltip {
    display: none;
}

/* First week row: tooltip below the cell so it doesn't clip the top */
.vmf-cal-tooltip-below {
    bottom: auto;
    top: calc(100% + 8px);
}

.vmf-cal-tooltip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #152739;
}

/* Edge columns: align tooltip to the grid edge */
.vmf-cal-tooltip-left {
    left: 0;
    transform: none;
}

.vmf-cal-tooltip-left::after {
    left: 14px;
}

.vmf-cal-tooltip-right {
    left: auto;
    right: 0;
    transform: none;
}

.vmf-cal-tooltip-right::after {
    left: auto;
    right: 14px;
    transform: none;
}

/* Event list below grid — stacked cards (same style as .vmf-event-card) */
.vmf-cal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vmf-cal-list-hint {
    font-size: 0.8rem;
    color: #6b7f92;
    margin: 0 0 4px;
    font-style: italic;
}

/* hidden attribute must beat .vmf-event-card's display:flex */
.vmf-cal-list-row[hidden] {
    display: none;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */

/* Tablet: cards become two columns */
@media (max-width: 900px) {
    .vmf-events-side {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile: cards stack */
@media (max-width: 600px) {
    .vmf-events-side {
        grid-template-columns: 1fr;
    }
    .vmf-detail-title { font-size: 1.4rem; }
}
