﻿/* 04_VIEW-HOME.CSS — Beranda Forum Silaturahim (Harmonisasi Desktop & HP) */

/* Hero Banner (Islamic Geometric Touch) */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #073B2E 0%, #0D5B47 55%, #127057 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 20%, #E9D39B 1.5px, transparent 1.5px),
                    radial-gradient(circle at 80% 70%, #E9D39B 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-ornament {
  position: absolute;
  right: -25px;
  top: -25px;
  width: 220px;
  height: 220px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: center;
}

.hero-welcome {
  min-width: 0;
}

.arabic-salam {
  font-family: var(--font-arabic, 'Amiri', 'Traditional Arabic', serif);
  font-size: 1.6rem;
  color: #F2DCA4;
  line-height: 1.45;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn-post {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero-btn-post:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-next-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(242, 220, 164, 0.28);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md, 14px);
  padding: 18px;
  min-width: 0;
}

.hero-next-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #F2DCA4;
  margin-bottom: 8px;
}

.hero-next-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.hero-next-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.hero-rsvp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 14px);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-700);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon.emerald { background: var(--emerald-100); color: var(--emerald-700); }
.stat-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }

.stat-info {
  min-width: 0;
  overflow: hidden;
}

.stat-value {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* Hikmah Quote Card (Ayat / Hadits Hari Ini) */
.hikmah-card {
  background: linear-gradient(135deg, var(--gold-100), var(--surface));
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-lg, 16px);
  padding: 20px 24px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hikmah-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hikmah-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
}
.hikmah-arabic {
  font-family: var(--font-arabic, 'Amiri', 'Traditional Arabic', serif);
  font-size: 1.6rem;
  line-height: 1.75;
  text-align: right;
  direction: rtl;
  color: var(--emerald-800);
  padding: 4px 0;
}
[data-theme="dark"] .hikmah-arabic { color: #F2DCA4; }
.hikmah-translation {
  font-size: 0.94rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}
.hikmah-source {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Mading Section & Section Headers */
.home-forum-section {
  margin-top: 10px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Toolbar & Filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover { border-color: var(--emerald-700); color: var(--emerald-700); }
.pill.active {
  background: var(--emerald-800);
  color: #FFFFFF;
  border-color: var(--emerald-800);
}

.search-box {
  position: relative;
  min-width: 220px;
  flex: 1;
  max-width: 320px;
}
.search-box input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
}
.search-box input:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px var(--emerald-100);
}
.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
.badge-emerald { background: var(--emerald-100); color: var(--emerald-700); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: var(--bg-soft); color: var(--text-muted); }

/* =========================================================
   PENYESUAIAN RESPONSIF HP & TABLET (Ukuran Font, Padding & Tata Letak)
   ========================================================= */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .hero-banner {
    padding: 20px 16px;
    border-radius: 18px;
    margin-bottom: 16px;
  }
  .hero-ornament {
    width: 150px;
    height: 150px;
    right: -35px;
    top: -35px;
  }
  .arabic-salam {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    font-size: 0.82rem;
    padding: 8px 12px;
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
  .hero-next-card {
    padding: 14px 15px;
    border-radius: 12px;
  }
  .hero-next-title {
    font-size: 0.98rem;
  }
  .hero-next-meta {
    font-size: 0.8rem;
    gap: 3px;
    margin-bottom: 12px;
  }
  .hero-rsvp-actions .btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  /* Stats di HP 2 Kolom Ringkas */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .stat-card {
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .stat-value {
    font-size: 0.98rem;
    font-weight: 800;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  /* Mutiara Hikmah di HP */
  .hikmah-card {
    padding: 16px;
    border-radius: 14px;
    gap: 8px;
    margin-bottom: 16px;
  }
  .hikmah-tag {
    font-size: 0.7rem;
  }
  .hikmah-arabic {
    font-size: 1.35rem;
    line-height: 1.6;
  }
  .hikmah-translation {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  .hikmah-source {
    font-size: 0.76rem;
  }

  /* Section Header Mading di HP */
  .section-header {
    margin-bottom: 12px;
  }
  .section-title {
    font-size: 1.05rem;
  }
  .section-subtitle {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-value {
    font-size: 1.1rem;
  }
}
