/* =========================================================
   Memorial Centre Events — Frontend Styles
   Neutral/flexible — override with your theme variables
========================================================= */

/* =========================================================
   TOOLBAR (search)
========================================================= */

.mce-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mce-search-wrap {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.mce-search-wrap input {
    background: transparent;
	border: 1px solid #afafaf;
	border-radius: 4px;
	padding: 8px 30px 8px 10px !important;
	font-size: 16px;
	width: 100%;
	outline: none;
	transition: width 0.3s ease 0.2s,border-color 0.3s ease;
}

.mce-search-wrap input::placeholder {
    color: rgba(0,0,0,0.6);
}

.mce-search-wrap input:focus {
    border-color: var(--gcid-primary-color, #5BA2AF) !important;
    outline: none;
}

/* =========================================================
   TIMELINE (month filter strip)
========================================================= */

.mce-timeline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.mce-timeline-btn {
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mce-timeline-btn:hover {
    border-color: var(--gcid-primary-color, #5BA2AF);
    color: var(--gcid-primary-color, #5BA2AF);
}

.mce-timeline-btn.active {
    background: var(--gcid-primary-color, #5BA2AF);
    border-color: var(--gcid-primary-color, #5BA2AF);
    color: #fff;
}

/* =========================================================
   EVENTS GRID
========================================================= */

.mce-events-grid {
    display: grid;
    gap: calc(30px + 0.5vw);
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .mce-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .mce-events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .mce-events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================================
   EVENT CARD
========================================================= */

.mce-event-card {
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.mce-event-card:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    margin: 1px;
}

.mce-event-card.mce-sold-out {
    opacity: 0.7;
}

.mce-event-card.mce-hidden {
    display: none !important;
}



/* Image */
.mce-event-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.mce-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge */
.mce-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mce-badge-soldout {
    background: #c0392b;
    color: #fff;
}

.mce-badge-low {
    background: #e67e22;
    color: #fff;
}

/* Body */
.mce-event-card-body {
    padding: 16px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 4px;
}

.mce-event-card-body p, .mce-event-card-body h3 {padding-bottom: 0;}

.mce-event-title {
    font-size: calc(17px + 0.15vw);
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3em;
    color: var(--gcid-secondary-color, #5BA2AF);
}

.mce-event-date {
    font-size: calc(16px + 0.15em);
    color: var(--gcid-primary-color, #5BA2AF);
    font-weight: 600;
    margin: 0;
}

.mce-event-venue {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.mce-event-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gcid-secondary-color, #333);
    margin: 6px 0 0;
}

/* Button */
.mce-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    background: rgba(249,186,8,1);
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    align-self: end;
    justify-self: start;
}

.mce-btn:hover {
    opacity: 0.7;
}

.mce-btn-disabled {
    background: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================================================
   CALENDAR VIEW
========================================================= */

.mce-calendar-wrap {}

.mce-cal-timeline {
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 32px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 6px;
    scrollbar-width: thin;
	background: linear-gradient(to bottom, #318298, var(--gcid-primary-color, #5BA2AF));
}

.mce-cal-month {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 14px 10px;
    text-align: center;
    border-right: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.15s ease;
}

.mce-cal-month:last-child {
/*   border-right: 0;*/
}

.mce-cal-month:hover,
.mce-cal-month.active {
    background: rgba(0,0,0,0.2);
}

.mce-cal-month:hover .mce-cal-month-label,
.mce-cal-month.active .mce-cal-month-label,
.mce-cal-month:hover .mce-cal-count,
.mce-cal-month.active .mce-cal-count {
    color: #fff;
}

.mce-cal-month-label {
    font-size: calc(14px + 0.25em);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
}


.mce-cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 6px;
    min-height: 28px;
    max-width: 192px;
    margin-left: auto;
    margin-right: auto;
}


.mce-cal-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gcid-secondary-color, #5BA2AF);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.mce-cal-dot:hover {
    transform: scale(1.2);
}

.mce-cal-dot.mce-dot-soldout {
    background: #aaa;
}

.mce-cal-count {
    font-size: calc(12px + 0.25em);
    color: #fff;
}


.mce-reset-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mce-reset-btn:hover {
    border-color: var(--gcid-primary-color, #5BA2AF);
    color: var(--gcid-primary-color, #5BA2AF);
}

/* =========================================================
   NO RESULTS
========================================================= */

.mce-no-events,
.mce-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* =========================================================
   HIDDEN CARD (filtered out)
========================================================= */

.mce-event-card.mce-hidden {
    display: none !important;
}
