/* ============================================================
   GOSPEL HERALD — components.css
   Cards · Hero · Sidebar · Article · Forms
   ============================================================ */

/* ── HERO SLIDER ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep);
  display: flex;
  flex-direction: column;
}
.hero-slide {
  display: none;
  position: relative;
  flex: 1;
  min-height: 280px;   /* floor so it never collapses completely */
}
.hero-slide.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: fadeIn .6s ease;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide.active .hero-bg { animation: subtleZoom 7s ease both; }
@keyframes subtleZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}
.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,25,.92) 0%, rgba(10,10,25,.5) 60%, transparent 100%);
  padding: 48px 28px 24px;
}
.hero-cats { display: flex; gap: 6px; margin-bottom: 10px; }
.hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 640px;
}
.hero-title a:hover { color: var(--gold-light); }
.hero-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.hero-meta-row .author { color: var(--gold); }
.hero-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: var(--trans);
  border: none;
}
.hero-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}
.hero-arrow {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  border: 1px solid rgba(255,255,255,.2);
}
.hero-arrow:hover { background: var(--gold); color: var(--deep); }

@media (max-width: 640px) {
  .hero-slide img { height: 260px; }
  .hero-title { font-size: 19px; }
  .hero-excerpt { display: none; }
  .hero-caption { padding: 32px 14px 16px; }
}

/* ── ARTICLE CARD (standard) ── */
.art-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans);
}
.art-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.art-card-img {
  position: relative;
  overflow: hidden;
}
.art-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .5s ease;
}
.art-card:hover .art-card-img img { transform: scale(1.06); }
.art-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(139,26,26,.9);
  color: white;
  padding: 3px 8px;
}
.art-card-body { padding: 14px 14px 16px; }
.art-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-card:hover .art-card-title { color: var(--crimson); }
.art-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── ARTICLE CARD MINI (sidebar list) ── */
.art-mini {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--trans);
}
.art-mini:last-child { border-bottom: none; }
.art-mini:hover { opacity: .8; }
.art-mini-img {
  width: 80px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 1px;
}
.art-mini-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 5px;
}
.art-mini:hover .art-mini-title { color: var(--crimson); }
.art-mini-date {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── FEATURED CARD (large horizontal) ── */
.art-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans);
}
.art-featured:hover { box-shadow: var(--shadow-md); }
.art-featured-img { position: relative; overflow: hidden; }
.art-featured-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s;
}
.art-featured:hover .art-featured-img img { transform: scale(1.04); }
.art-featured-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.art-featured-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 10px;
}
.art-featured:hover .art-featured-title { color: var(--crimson); }
.art-featured-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .art-featured { grid-template-columns: 1fr; }
  .art-featured-img img { height: 200px; }
}

/* ── VIDEO CARD ── */
.vid-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans);
}
.vid-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vid-thumb {
  position: relative;
  overflow: hidden;
}
.vid-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform .4s;
}
.vid-card:hover .vid-thumb img { transform: scale(1.05); }
.vid-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  background: rgba(139,26,26,.85);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--trans);
  backdrop-filter: blur(2px);
}
.vid-card:hover .vid-play { background: var(--crimson); transform: translate(-50%,-50%) scale(1.1); }
.vid-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.7);
  color: white;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
}
.vid-body { padding: 12px; }
.vid-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 7px;
}

/* ── OPINION / QUOTE CARD ── */
.quote-card {
  background: var(--deep-2);
  padding: 24px;
  border-left: 4px solid var(--gold);
  position: relative;
}
.quote-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--gold);
  opacity: .15;
  position: absolute;
  top: -10px; left: 16px;
  line-height: 1;
}
.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ivory);
  line-height: 1.6;
  margin-bottom: 14px;
}
.quote-author {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── EVENT CARD ── */
.event-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--crimson);
  margin-bottom: 10px;
  transition: var(--trans);
}
.event-card:hover { box-shadow: var(--shadow-sm); }
.event-date-box {
  background: var(--crimson);
  color: white;
  min-width: 52px;
  text-align: center;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-date-box .day {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.event-date-box .month {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.event-info h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}
.event-info p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── PREACHER / AUTHOR CARD ── */
.preacher-card {
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  transition: var(--trans);
}
.preacher-card:hover { box-shadow: var(--shadow-sm); }
.preacher-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--gold);
}
.preacher-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.preacher-role {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}
.preacher-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── ARTICLE SINGLE ── */
.article-single {}
.article-header { margin-bottom: 24px; }
.article-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 14px;
}
.article-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.byline-info .author-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--crimson);
}
.byline-info .publish-info {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-main);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text-main);
}
.article-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--ivory-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--slate);
  line-height: 1.5;
}
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  margin-bottom: 8px;
}
.article-img-caption {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .article-title { font-size: 24px; }
  .article-body { font-size: 15px; }
  .article-hero-img { height: 220px; }
}

/* ── SHARE BAR ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
  flex-wrap: wrap;
}
.share-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  color: white;
  transition: var(--trans);
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-fb { background: #1877F2; }
.share-wa { background: #25D366; }
.share-tw { background: #1DA1F2; }
.share-yt { background: #FF0000; }

/* ── COMMENT FORM ── */
.comment-form { margin-top: 32px; }
.comment-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate-2);
}
.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: var(--trans);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,.12);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── NEWSLETTER BOX ── */
.newsletter-box {
  background: var(--deep-2);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--gold-dim);
}
.newsletter-box h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.newsletter-box p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.newsletter-box .input-row { display: flex; gap: 0; }
.newsletter-box input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  color: white;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
}
.newsletter-box input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-box .btn { border-radius: 0; }

/* ── POLL WIDGET ── */
.poll-widget {}
.poll-question {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.4;
}
.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.poll-option input { accent-color: var(--crimson); }
.poll-option label {
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
}
