/* ── eZizz Events — Frontend Styles ──────────────────────────────────────── */
:root {
  --ez-green:       #0f6e56;
  --ez-green-light: #1a9b78;
  --ez-green-dark:  #084435;
  --ez-dark:        #0e0e0e;
  --ez-surface:     #1a1a1a;
  --ez-surface-2:   #242424;
  --ez-border:      #2e2e2e;
  --ez-text:        #e8e8e8;
  --ez-muted:       #888;
  --ez-amber:       #f0a500;
  --ez-blue:        #3b82f6;
  --ez-red:         #ef4444;
  --ez-radius:      10px;
  --ez-radius-lg:   16px;
  --ez-shadow:      0 2px 16px rgba(0,0,0,.4);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.ezizz-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--ez-radius); border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.ezizz-btn-primary   { background: var(--ez-green); color: #fff; }
.ezizz-btn-primary:hover { background: var(--ez-green-light); color: #fff; }
.ezizz-btn-ghost     { background: transparent; color: var(--ez-text); border: 1px solid var(--ez-border); }
.ezizz-btn-ghost:hover   { border-color: var(--ez-green); color: var(--ez-green); }
.ezizz-btn-danger    { background: transparent; color: var(--ez-red); border: 1px solid rgba(239,68,68,.3); }
.ezizz-btn-danger:hover  { background: rgba(239,68,68,.1); }
.ezizz-btn-sm        { padding: 6px 12px; font-size: 12px; }
.ezizz-btn-lg        { padding: 14px 28px; font-size: 16px; }

/* ── Inputs ───────────────────────────────────────────────────────────────── */
.ezizz-input {
  width: 100%; padding: 10px 14px; background: var(--ez-surface-2);
  border: 1px solid var(--ez-border); border-radius: var(--ez-radius);
  color: var(--ez-text); font-size: 14px; box-sizing: border-box;
  transition: border-color .18s;
}
.ezizz-input:focus   { outline: none; border-color: var(--ez-green); }
.ezizz-textarea      { resize: vertical; min-height: 100px; }
.ezizz-select        { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.ezizz-search-input  { max-width: 280px; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.ezizz-badge         { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.badge-green         { background: rgba(15,110,86,.2); color: #1db58c; }
.badge-amber         { background: rgba(240,165,0,.2); color: var(--ez-amber); }
.badge-blue          { background: rgba(59,130,246,.2); color: var(--ez-blue); }

/* ── Flash messages ───────────────────────────────────────────────────────── */
.ezizz-flash         { padding: 12px 16px; border-radius: var(--ez-radius); margin-bottom: 20px; font-size: 14px; }
.ezizz-flash-success { background: rgba(15,110,86,.2); color: #1db58c; border: 1px solid rgba(15,110,86,.3); }
.ezizz-flash-error   { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.ezizz-dashboard     { max-width: 960px; margin: 0 auto; }
.ezizz-dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ezizz-dashboard-header h2 { margin: 0; font-size: 22px; color: var(--ez-text); }

.ezizz-events-table  { border: 1px solid var(--ez-border); border-radius: var(--ez-radius-lg); overflow: hidden; }
.ezizz-table-header  { display: grid; grid-template-columns: 2fr 1fr 100px 60px 160px; padding: 12px 16px; background: var(--ez-surface-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ez-muted); }
.ezizz-table-row     { display: grid; grid-template-columns: 2fr 1fr 100px 60px 160px; padding: 14px 16px; align-items: center; border-top: 1px solid var(--ez-border); font-size: 14px; color: var(--ez-text); }
.ezizz-table-row:hover { background: var(--ez-surface-2); }
.ezizz-event-name a  { color: var(--ez-text); text-decoration: none; font-weight: 600; }
.ezizz-event-name a:hover { color: var(--ez-green-light); }
.ezizz-actions       { display: flex; gap: 6px; }

.ezizz-empty-state   { text-align: center; padding: 60px 20px; color: var(--ez-muted); }
.ezizz-empty-state p { margin-bottom: 16px; }

/* ── Event creation form ──────────────────────────────────────────────────── */
.ezizz-event-form    { max-width: 760px; }
.ezizz-form-section  { background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-lg); padding: 24px; margin-bottom: 20px; }
.ezizz-form-section h3 { margin: 0 0 20px; font-size: 15px; font-weight: 700; color: var(--ez-text); }
.ezizz-field         { margin-bottom: 16px; }
.ezizz-field:last-child { margin-bottom: 0; }
.ezizz-field label   { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ez-muted); text-transform: uppercase; letter-spacing: .4px; }
.ezizz-field-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ezizz-field-inline  { display: flex; align-items: center; justify-content: space-between; }
.ezizz-form-actions  { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

.ezizz-current-image { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--ez-muted); }
.ezizz-current-image img { width: 60px; height: 40px; object-fit: cover; border-radius: 4px; }

/* ── Visibility radio cards ───────────────────────────────────────────────── */
.ezizz-radio-group   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ezizz-radio-card    { position: relative; padding: 16px; border: 1.5px solid var(--ez-border); border-radius: var(--ez-radius); cursor: pointer; transition: all .18s; }
.ezizz-radio-card:hover    { border-color: var(--ez-green); }
.ezizz-radio-card.selected { border-color: var(--ez-green); background: rgba(15,110,86,.1); }
.ezizz-radio-card input    { position: absolute; opacity: 0; }
.ezizz-radio-title   { display: block; font-size: 13px; font-weight: 700; color: var(--ez-text); margin-bottom: 4px; }
.ezizz-radio-desc    { display: block; font-size: 11px; color: var(--ez-muted); line-height: 1.4; }

/* ── Toggle switch ────────────────────────────────────────────────────────── */
.ezizz-toggle        { position: relative; display: inline-block; width: 44px; height: 24px; }
.ezizz-toggle input  { opacity: 0; width: 0; height: 0; }
.ezizz-toggle-slider { position: absolute; inset: 0; background: var(--ez-border); border-radius: 12px; transition: background .2s; cursor: pointer; }
.ezizz-toggle-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.ezizz-toggle input:checked + .ezizz-toggle-slider { background: var(--ez-green); }
.ezizz-toggle input:checked + .ezizz-toggle-slider::before { transform: translateX(20px); }

/* ── Explore grid ─────────────────────────────────────────────────────────── */
.ezizz-explore       { max-width: 1100px; margin: 0 auto; }
.ezizz-explore-filters { margin-bottom: 28px; }
.ezizz-filter-form   { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ezizz-filter-form .ezizz-input { width: auto; }

.ezizz-events-grid        { display: grid; gap: 24px; }
.ezizz-grid-cols-3        { grid-template-columns: repeat(3, 1fr); }
.ezizz-grid-cols-2        { grid-template-columns: repeat(2, 1fr); }
.ezizz-grid-cols-1        { grid-template-columns: 1fr; }

/* ── Event card ───────────────────────────────────────────────────────────── */
.ezizz-event-card    { background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ezizz-event-card:hover { transform: translateY(-3px); box-shadow: var(--ez-shadow); border-color: var(--ez-green); }
.ezizz-event-card.is-past { opacity: .7; }

.ezizz-card-img-wrap { display: block; position: relative; }
.ezizz-card-img      { width: 100%; height: 180px; object-fit: cover; display: block; }
.ezizz-card-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--ez-surface-2) 0%, var(--ez-green-dark) 100%); }
.ezizz-card-badge    { position: absolute; top: 10px; left: 10px; }
.ezizz-badge-past    { background: rgba(0,0,0,.7); color: var(--ez-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 4px; }


.ezizz-card-tags     { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ezizz-tag           { background: rgba(15,110,86,.15); color: var(--ez-green-light); font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.ezizz-card-title    { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.ezizz-card-title a  { color: var(--ez-text); text-decoration: none; }
.ezizz-card-title a:hover { color: var(--ez-green-light); }
.ezizz-card-meta     { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ez-muted); margin-bottom: 6px; }
.ezizz-meta-icon     { font-size: 13px; }
.ezizz-card-cta      { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ez-green-light); text-decoration: none; }
.ezizz-card-cta:hover { color: var(--ez-green); }

/* ── Capacity bar ─────────────────────────────────────────────────────────── */
.ezizz-rsvp-capacity,
.ezizz-card-capacity { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 12px; color: var(--ez-muted); }
.ezizz-capacity-bar  { flex: 1; height: 5px; background: var(--ez-surface-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.ezizz-capacity-fill { height: 100%; background: var(--ez-green); border-radius: 3px; transition: width .4s; }

/* ── RSVP widget ──────────────────────────────────────────────────────────── */
.ezizz-rsvp-widget   { background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-lg); padding: 24px; margin: 24px 0; }
.ezizz-rsvp-form     { display: flex; flex-direction: column; gap: 12px; }
.ezizz-rsvp-status   { padding: 12px 16px; border-radius: var(--ez-radius); font-size: 14px; font-weight: 600; }
.ezizz-rsvp-status.confirmed { background: rgba(15,110,86,.2); color: #1db58c; }
.ezizz-rsvp-status.waitlist  { background: rgba(240,165,0,.15); color: var(--ez-amber); }
.ezizz-rsvp-closed   { color: var(--ez-muted); font-size: 14px; }
.ezizz-rsvp-message  { padding: 12px 16px; border-radius: var(--ez-radius); font-size: 14px; }

/* ── Gate pages ───────────────────────────────────────────────────────────── */
.ezizz-gate-wrap     { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 20px; }
.ezizz-gate-card     { background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-lg); padding: 40px; max-width: 440px; width: 100%; text-align: center; }
.ezizz-gate-icon     { font-size: 32px; margin-bottom: 16px; }
.ezizz-gate-icon .dashicons { font-size: 40px; color: var(--ez-muted); }
.ezizz-gate-title    { font-size: 20px; font-weight: 700; color: var(--ez-text); margin: 0 0 8px; }
.ezizz-gate-subtitle { color: var(--ez-muted); font-size: 14px; margin-bottom: 24px; }
.ezizz-gate-error    { background: rgba(239,68,68,.15); color: #f87171; padding: 10px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.ezizz-gate-form     { display: flex; flex-direction: column; gap: 12px; }
.ezizz-gate-login-hint { font-size: 12px; color: var(--ez-muted); margin-top: 12px; }
.ezizz-gate-login-hint a { color: var(--ez-green-light); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.ezizz-pagination    { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.ezizz-page-btn      { padding: 8px 14px; border: 1px solid var(--ez-border); border-radius: 6px; color: var(--ez-text); text-decoration: none; font-size: 14px; }
.ezizz-page-btn:hover { border-color: var(--ez-green); color: var(--ez-green-light); }
.ezizz-page-btn.active { background: var(--ez-green); border-color: var(--ez-green); color: #fff; }

/* ── Notice ───────────────────────────────────────────────────────────────── */
.ezizz-notice        { padding: 14px 18px; background: var(--ez-surface); border-left: 3px solid var(--ez-green); border-radius: 4px; font-size: 14px; color: var(--ez-muted); }
.ezizz-notice a      { color: var(--ez-green-light); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media ( max-width: 768px ) {
  .ezizz-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .ezizz-radio-group { grid-template-columns: 1fr; }
  .ezizz-field-row   { grid-template-columns: 1fr; }
  .ezizz-table-header,
  .ezizz-table-row   { grid-template-columns: 2fr 1fr 80px; }
  .ezizz-table-header span:nth-child(4),
  .ezizz-table-row   span:nth-child(4),
  .ezizz-table-header span:nth-child(5),
  .ezizz-table-row   span:nth-child(5) { display: none; }
}
@media ( max-width: 480px ) {
  .ezizz-grid-cols-3,
  .ezizz-grid-cols-2 { grid-template-columns: 1fr; }
  .ezizz-filter-form { flex-direction: column; }
  .ezizz-filter-form .ezizz-input,
  .ezizz-search-input { max-width: 100%; width: 100%; }
}
