/* ============================================================
   Grace Church Events — Single Event Page Styles
   grace-single-event.css
   ============================================================ */

/* ── Outer wrapper ───────────────────────────────────── */
.gec-single-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1A1A1A;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

/* ── HERO BANNER ─────────────────────────────────────── */
.gec-single-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

/* With featured image */
.gec-single-hero-img {
  position: absolute;
  inset: 0;
}
.gec-single-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gec-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.75) 100%
  );
}

/* Without image — solid accent colour */
.gec-single-hero-color {
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

/* Hero text content */
.gec-single-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2.5rem;
  width: 100%;
}
.gec-back-link {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
  transition: color .15s;
}
.gec-back-link:hover { color: #fff; text-decoration: underline; }

.gec-single-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.gec-single-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
}
.gec-badge-recur  { background: rgba(201,168,76,0.55); }
.gec-badge-featured { background: rgba(255,200,0,0.4); color: #fff; }

.gec-single-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gec-single-hero-date {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* ── BODY LAYOUT ─────────────────────────────────────── */
.gec-single-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  padding: 0 2rem;
}

/* ── DETAIL CARDS (left column) ──────────────────────── */
.gec-single-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gec-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #EDE7DC;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(13,27,42,0.06);
  transition: box-shadow .15s;
}
.gec-detail-card:hover {
  box-shadow: 0 4px 18px rgba(13,27,42,0.10);
}

.gec-detail-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.gec-detail-card-content {
  flex: 1;
  min-width: 0;
}
.gec-detail-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 3px;
}
.gec-detail-card-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0D1B2A;
  line-height: 1.4;
}
.gec-detail-card-sub {
  font-size: 0.8rem;
  color: #777;
  margin-top: 3px;
}
.gec-detail-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #0069AA;
  text-decoration: none;
  margin-top: 4px;
  font-weight: 500;
  transition: color .15s;
}
.gec-detail-link:hover { color: #004E80; text-decoration: underline; }
.gec-zoom-cta {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── MAIN RIGHT COLUMN ───────────────────────────────── */
.gec-single-main { }

.gec-single-section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D1B2A;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #EDE7DC;
}

.gec-single-description {
  margin-bottom: 2rem;
}
.gec-single-content {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #333;
}
.gec-single-content p { margin: 0 0 1em; }
.gec-single-content a { color: #0069AA; }

/* ── ACTION BUTTONS ──────────────────────────────────── */
.gec-single-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #F8F4EE;
  border-radius: 10px;
  border: 1px solid #EDE7DC;
}

.gec-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  white-space: nowrap;
}
.gec-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.gec-action-primary {
  color: #fff;
}
.gec-action-secondary {
  background: #0069AA;
  color: #fff;
}
.gec-action-secondary:hover { background: #005890; }
.gec-action-outline {
  background: transparent;
  color: #0D1B2A;
  border: 2px solid #ddd;
}
.gec-action-outline:hover { background: #fff; border-color: #0D1B2A; }

/* ── ADD TO CALENDAR ─────────────────────────────────── */
.gec-add-to-cal {
  margin-top: 0.5rem;
}
.gec-cal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gec-cal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #EDE7DC;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0D1B2A;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.gec-cal-link:hover {
  background: #F8F4EE;
  border-color: #C9A84C;
  color: #0D1B2A;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 820px) {
  .gec-single-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.25rem;
  }
  .gec-single-hero {
    min-height: 240px;
    border-radius: 0;
  }
  .gec-single-hero-content { padding: 1.5rem; }
  .gec-single-title { font-size: 1.6rem; }
  .gec-single-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .gec-single-details { grid-template-columns: 1fr; }
  .gec-single-actions { flex-direction: column; }
  .gec-action-btn { justify-content: center; }
}
