/* TCG Bay Events & Meets. Uses the theme's colour variables when present, with fallbacks. */
.tcg-events { --e-accent: var(--c-accent, #026769); --e-secondary: var(--c-secondary, #E55822); --e-primary: var(--c-primary, #FAAE1A); --e-text: var(--c-text, #505050); --e-cream: var(--c-cream, #FFF4DF); font-family: var(--f-body, "Raleway", system-ui, sans-serif); color: var(--e-text); }
.tcg-events__group { margin-bottom: 48px; }
.tcg-events__group h2, .tcg-events__heading { margin: 0 0 20px; }
.tcg-events__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tcg-events__empty { padding: 24px; background: var(--e-cream); border-radius: 14px; text-align: center; font-weight: 600; }

.tcg-event { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); transition: transform .18s cubic-bezier(.23, 1, .32, 1), box-shadow .18s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .tcg-event:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(2, 103, 105, .14); } }
.tcg-event.is-past { opacity: .8; }
.tcg-event.is-past .tcg-event__media img { filter: grayscale(.6); }
.tcg-event__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--e-cream); overflow: hidden; }
.tcg-event__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcg-event__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--e-primary), var(--e-secondary)); opacity: .35; }
.tcg-event__date { position: absolute; top: 12px; left: 12px; width: 54px; padding: 6px 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); text-align: center; line-height: 1; }
.tcg-event__date b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--e-accent); }
.tcg-event__date i { display: block; margin-top: 3px; font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--e-secondary); }
.tcg-event__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.tcg-event__pill { align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tcg-event__pill--upcoming { background: var(--e-accent); color: #fff; }
.tcg-event__pill--today { background: var(--e-secondary); color: #fff; }
.tcg-event__pill--past { background: #eee; color: #666; }
.tcg-event__title { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.tcg-event__title a { color: inherit; }
.tcg-event__title a:hover { color: var(--e-secondary); }
.tcg-event__meta { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; font-size: .9rem; font-weight: 600; }
.tcg-event__meta li:first-child { color: var(--e-accent); }
.tcg-event__excerpt { margin: 0 0 14px; font-size: .92rem; line-height: 1.55; }
.tcg-event__more { margin-top: auto; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--e-accent); }
.tcg-event__more:hover { color: var(--e-secondary); }

.tcg-events__all { margin: 28px 0 0; text-align: center; }
.tcg-events__button { display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.6em; border-radius: 10px; background: var(--e-accent); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; transition: background .2s, transform .12s; }
.tcg-events__button:hover { background: var(--e-secondary); color: #fff; }
.tcg-events__button:active { transform: scale(.97); }

/* Home page block */
.tcg-home-events { max-width: var(--wrap, 1920px); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter, 4vw); }

/* Single event */
.tcg-event-single { max-width: 860px; margin: 0 auto; }
.tcg-event-single__image img { width: 100%; height: auto; border-radius: 14px; display: block; margin-bottom: 20px; }
.tcg-event__meta--single { margin-bottom: 20px; font-size: 1rem; }
.tcg-event-single__text { font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }

@media (max-width: 1024px) { .tcg-events__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tcg-events__grid { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .tcg-event, .tcg-events__button { transition: none; } }
