/* EV13 public Activities UI refinement — 2026-10-05
   Loaded after public_activities_ev13.css. No business logic changes. */

.ev13-activities{
  --ev-ui-red:#e31d2b;
  --ev-ui-red-dark:#bc1520;
  --ev-ui-ink:#16313a;
  --ev-ui-text:#405760;
  --ev-ui-muted:#71858d;
  --ev-ui-border:#e4eaed;
  --ev-ui-soft:#f6f8f9;
  --ev-ui-soft-red:#fff4f5;
  --ev-ui-shadow:0 18px 48px rgba(20,49,58,.08);
  position:relative;
  padding:54px 0 72px;
  background:
    radial-gradient(circle at 8% 0%, rgba(227,29,43,.055), transparent 26rem),
    linear-gradient(180deg,#f8fafb 0,#fff 300px);
  color:var(--ev-ui-text);
}
.ev13-activities>.container{position:relative;z-index:1}

/* Hero */
.ev13-hero{
  position:relative;
  overflow:hidden;
  align-items:center;
  padding:34px 36px;
  border:1px solid var(--ev-ui-border);
  border-radius:26px;
  background:linear-gradient(135deg,#fff 0%,#fff 66%,#fff7f8 100%);
  box-shadow:var(--ev-ui-shadow);
}
.ev13-hero:after{
  content:"";
  position:absolute;
  width:210px;height:210px;
  inset-inline-end:-78px;top:-105px;
  border-radius:50%;
  border:34px solid rgba(227,29,43,.055);
  pointer-events:none;
}
.ev13-eyebrow{
  position:relative;z-index:1;
  padding:7px 11px;
  border-radius:999px;
  background:var(--ev-ui-soft-red);
  color:var(--ev-ui-red);
  font-size:.78rem;
}
.ev13-hero h1{font-weight:800;letter-spacing:-.025em;color:var(--ev-ui-ink)}
.ev13-hero p{max-width:760px;line-height:1.8;color:var(--ev-ui-muted)}
.ev13-hero-actions{position:relative;z-index:1}
.ev13-btn{border-radius:13px;min-height:46px;padding-inline:18px}
.ev13-btn-primary{background:var(--ev-ui-red);border-color:var(--ev-ui-red)}
.ev13-btn-primary:hover{background:var(--ev-ui-red-dark);border-color:var(--ev-ui-red-dark)}

/* Filter surface */
.ev13-filter{
  position:relative;
  padding:18px;
  gap:12px;
  border-color:var(--ev-ui-border);
  border-radius:20px;
  box-shadow:0 8px 28px rgba(20,49,58,.045);
}
.ev13-filter select,.ev13-search-field,.ev13-featured-toggle span{
  min-width:0;
  border-color:#dce4e8;
  background:#fff;
}
.ev13-filter select:focus,.ev13-search-field:focus-within{
  outline:none;
  border-color:rgba(227,29,43,.48);
  box-shadow:0 0 0 3px rgba(227,29,43,.08);
}
.ev13-search-field input{font-size:.92rem}
.ev13-featured-toggle span{white-space:nowrap}
.ev13-clear{justify-self:center;color:var(--ev-ui-red)}

/* View switch + feed links */
.ev13-toolbar{
  min-height:52px;
  padding:0 2px;
}
.ev13-view-switch{
  padding:5px;
  border-color:var(--ev-ui-border);
  border-radius:14px;
  box-shadow:0 5px 20px rgba(20,49,58,.04);
}
.ev13-view-switch a{min-height:38px;padding-inline:14px}
.ev13-view-switch a.is-active{background:var(--ev-ui-ink);box-shadow:0 5px 14px rgba(20,49,58,.16)}
.ev13-feed-links{align-items:center}
.ev13-feed-links a{
  display:inline-flex;align-items:center;min-height:34px;
  padding:6px 10px;border:1px solid var(--ev-ui-border);border-radius:9px;
  background:#fff;border-bottom:1px solid var(--ev-ui-border);
  font-weight:700;
}
.ev13-feed-links a:hover{color:var(--ev-ui-red);border-color:#f0c8cc}

/* Empty state */
.ev13-empty{
  min-height:250px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#fafcfc,#f5f8f9);
  border:1px dashed #c8d5da;
  border-radius:22px;
}
.ev13-empty i{
  width:68px;height:68px;display:grid;place-items:center;
  border-radius:20px;background:#fff;color:var(--ev-ui-red);
  box-shadow:0 8px 24px rgba(20,49,58,.07);
}
.ev13-empty h2{font-size:1.35rem}

/* Cards */
.ev13-results{gap:24px}
.ev13-card{border-radius:22px;border-color:var(--ev-ui-border)}
.ev13-card-media{height:230px}
.ev13-card-body{padding:22px 22px 20px}
.ev13-card h2{font-weight:800}
.ev13-card-footer>a{display:inline-flex;align-items:center;gap:6px}

/* Calendar */
.ev13-calendar{
  overflow:hidden;
  border-color:var(--ev-ui-border);
  border-radius:24px;
  box-shadow:var(--ev-ui-shadow);
}
.ev13-calendar>header{
  min-height:72px;
  padding:14px 18px;
  background:linear-gradient(180deg,#fff,#fbfcfc);
}
.ev13-calendar>header h2{font-size:1.38rem;font-weight:800}
.ev13-calendar>header a{
  width:42px;height:42px;
  border:1px solid var(--ev-ui-border);
  background:#fff;
  box-shadow:0 4px 12px rgba(20,49,58,.05);
}
.ev13-calendar>header a:hover{background:var(--ev-ui-red);border-color:var(--ev-ui-red);color:#fff}
.ev13-weekdays{background:#f7f9fa}
.ev13-weekdays span{
  padding:13px 9px;
  border-inline-end:1px solid var(--ev-ui-border);
  color:#60757e;
  font-size:.79rem;
}
.ev13-weekdays span:last-child{border-inline-end:0}
.ev13-calendar-grid{background:var(--ev-ui-border);gap:1px}
.ev13-calendar-day{
  min-height:138px;
  padding:10px;
  border:0;
  background:#fff;
  transition:background-color .15s ease;
}
.ev13-calendar-day:hover{background:#fbfcfd}
.ev13-calendar-day.is-muted{background:#f8fafb;color:#a0adb3}
.ev13-calendar-day>b{font-weight:800;color:var(--ev-ui-ink)}
.ev13-calendar-day.is-muted>b{color:#9aa9af}
.ev13-calendar-day.is-today>b{background:var(--ev-ui-red);color:#fff;box-shadow:0 5px 12px rgba(227,29,43,.2)}
.ev13-day-events a{
  min-width:0;
  padding:7px 8px;
  border:1px solid #deeaee;
  background:#f0f6f8;
  border-radius:9px;
}
.ev13-day-events a:hover{background:#e6f1f4;border-color:#cddfe5}
.ev13-day-events a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev13-day-events a.is-featured{background:#fff7d6;border-color:#eedb83}

/* Categories */
.ev13-categories{
  margin-top:48px;
  padding:30px;
  border:1px solid var(--ev-ui-border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 28px rgba(20,49,58,.04);
}
.ev13-categories h2{margin:0 0 16px;font-size:1.35rem;font-weight:800}
.ev13-categories>div{gap:10px}
.ev13-categories a{
  padding:9px 13px;
  border:1px solid #e1e8eb;
  background:#f8fafb;
  transition:.18s ease;
}
.ev13-categories a:hover{transform:translateY(-1px);background:var(--ev-ui-soft-red);border-color:#f0c8cc;color:var(--ev-ui-red)}

/* RTL */
html[dir="rtl"] .ev13-activities{direction:rtl;text-align:right}
html[dir="rtl"] .ev13-hero-actions{justify-content:flex-start}
html[dir="rtl"] .ev13-search-field input,
html[dir="rtl"] .ev13-filter select{text-align:right}
html[dir="rtl"] .ev13-card-footer>a i.fa-arrow-right{transform:rotate(180deg)}
html[dir="rtl"] .ev13-calendar>header a:first-child i,
html[dir="rtl"] .ev13-calendar>header a:last-child i{transform:rotate(180deg)}
html[dir="rtl"] .ev13-feed-links,
html[dir="rtl"] .ev13-view-switch{direction:rtl}

@media(max-width:1199px){
  .ev13-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ev13-search-field{grid-column:1/-1}
  .ev13-filter .ev13-btn{width:100%}
  .ev13-clear{justify-self:start}
}
@media(max-width:767px){
  .ev13-activities{padding:28px 0 48px}
  .ev13-hero{padding:25px 22px;border-radius:20px}
  .ev13-hero h1{font-size:2rem}
  .ev13-hero-actions{width:100%}
  .ev13-hero-actions .ev13-btn{flex:1;min-width:150px}
  .ev13-filter{grid-template-columns:1fr;padding:14px;border-radius:17px}
  .ev13-search-field{grid-column:auto}
  .ev13-toolbar{gap:12px}
  .ev13-view-switch{display:flex;width:100%}
  .ev13-view-switch a{flex:1;justify-content:center}
  .ev13-feed-links{width:100%}
  .ev13-feed-links a{flex:1;justify-content:center}
  .ev13-calendar{border-radius:18px;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .ev13-calendar>header{position:sticky;left:0;right:0;min-width:760px;z-index:3}
  .ev13-weekdays,.ev13-calendar-grid{min-width:760px}
  .ev13-calendar-day{min-height:122px}
  .ev13-categories{padding:22px 18px;margin-top:34px}
}
