/* =========================================================
   Smart Events for Elementor — front-end styles
   ========================================================= */

/* ---------- Reset / base ---------- */
.smev-wrap *,
.smev-wrap *::before,
.smev-wrap *::after { box-sizing: border-box; }

/* ---------- Tab nav ---------- */
.smev-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 0;
}

.smev-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #888;
    cursor: pointer;
    margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
    transition: color .2s, border-color .2s, background .2s;
    font-family: inherit;
    letter-spacing: .3px;
}

.smev-tab:hover:not(.smev-active) {
    color: #444;
    background: #f5f5f5;
}

.smev-tab.smev-active {
    color: #fff;
    background-color: #1a3a2a;
    border-color: #1a3a2a;
}

/* count pill */
.smev-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.25);
    line-height: 1;
}

.smev-tab:not(.smev-active) .smev-count {
    background: #e8e8e8;
    color: #666;
}

/* ---------- Panels ---------- */
.smev-panel { display: none; }
.smev-panel.smev-active { display: block; }

.smev-empty {
    text-align: center;
    padding: 48px 0;
    color: #aaa;
    font-size: 15px;
}

/* ---------- Grid ---------- */
.smev-grid {
    display: grid;
    grid-template-columns: repeat(var(--smev-cols, 3), 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .smev-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 580px) {
    .smev-grid { grid-template-columns: 1fr !important; }
    .smev-tab  { padding: 8px 14px; font-size: 13px; }
}

/* ---------- Card ---------- */
.smev-card {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ebebeb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}

.smev-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-3px);
}

/* Subtle left accent by status */
.smev-card.smev-status-upcoming  { border-left: 4px solid #1a3a2a; }
.smev-card.smev-status-happening { border-left: 4px solid #d4a017; }
.smev-card.smev-status-expired   { border-left: 4px solid #bbb; }

/* ---------- Thumbnail ---------- */
.smev-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.smev-thumb .smev-img,
.smev-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.smev-card:hover .smev-thumb img { transform: scale(1.04); }

/* ---------- Badge ---------- */
.smev-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    pointer-events: none;
}

.smev-badge-upcoming  { background: #1a3a2a; color: #fff; }
.smev-badge-happening { background: #d4a017; color: #fff; }
.smev-badge-expired   { background: #888;    color: #fff; }

/* badge without thumbnail */
.smev-badge-nothumbnail {
    position: static;
    display: inline-block;
    margin: 14px 14px 0;
}

/* ---------- Card body ---------- */
.smev-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ---------- Title ---------- */
.smev-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

.smev-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color .2s;
}

.smev-title a:hover { color: #1a3a2a; }

/* ---------- Meta (date / location) ---------- */
.smev-meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.4;
}

.smev-meta svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #999;
}

.smev-meta a {
    color: #1a3a2a;
    text-decoration: underline;
}

/* ---------- Excerpt ---------- */
.smev-excerpt {
    font-size: 13.5px;
    color: #777;
    line-height: 1.65;
    margin: 8px 0 0;
    flex: 1;
}

/* ---------- Read More button ---------- */
.smev-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 6px;
    background: #1a3a2a;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 2px solid #1a3a2a;
    transition: background .2s, color .2s, transform .15s;
    align-self: flex-start;
}

.smev-readmore:hover {
    background: transparent;
    color: #1a3a2a !important;
}

.smev-readmore svg { transition: transform .2s; }
.smev-readmore:hover svg { transform: translateX(3px); }

/* expired: muted button */
.smev-status-expired .smev-readmore {
    background: #888;
    border-color: #888;
    color: #fff !important;
}

.smev-status-expired .smev-readmore:hover {
    background: transparent;
    color: #888 !important;
}

/* happening: amber button */
.smev-status-happening .smev-readmore {
    background: #b8860b;
    border-color: #b8860b;
}

.smev-status-happening .smev-readmore:hover {
    background: transparent;
    color: #b8860b !important;
}
