/* =====================================================
   GIÁO XỨ QUANG LÂM — CỔNG THÔNG TIN GIÁO XỨ (PORTAL)
   assets/css/portal.css
   ===================================================== */

/* ── Portal Navigation ── */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--t-mid);
}
[data-theme="light"] .portal-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(108, 75, 255, 0.12);
}
.portal-nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.portal-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 16px rgba(108, 75, 255, 0.4);
}
.portal-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.portal-brand-sub {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.portal-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.portal-menu-link {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all var(--t-fast);
}
.portal-menu-link:hover, .portal-menu-link.active {
  color: #fff;
  background: rgba(108, 75, 255, 0.15);
  text-decoration: none;
}
.portal-auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Hero Section ── */
.portal-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--sp-lg);
  background: radial-gradient(circle at 50% 20%, rgba(108, 75, 255, 0.25), transparent 70%),
              radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.15), transparent 60%),
              var(--bg-base);
  overflow: hidden;
  text-align: center;
}
.portal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(108, 75, 255, 0.15);
  border: 1px solid rgba(108, 75, 255, 0.3);
  border-radius: var(--r-f);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Section Styles ── */
.portal-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}
.portal-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}
.section-subtext {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-top: 0.5rem;
}

/* ── Feature Cards ── */
.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  transition: all var(--t-mid);
  display: flex;
  flex-direction: column;
}
.portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 75, 255, 0.4);
  box-shadow: var(--shadow-md), 0 0 20px rgba(108, 75, 255, 0.15);
}

/* ── Mass Schedule Widget ── */
.schedule-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.schedule-day-card {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--t-fast);
}
.schedule-day-card:last-child {
  border-bottom: none;
}
.schedule-day-card:hover {
  background: var(--bg-hover);
}
.schedule-time-badge {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(108,75,255,0.2), rgba(0,180,216,0.15));
  border: 1px solid rgba(108,75,255,0.3);
  border-radius: var(--r-f);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-light);
  white-space: nowrap;
}

/* ── VietQR Donation Card ── */
.donation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.vietqr-card {
  background: linear-gradient(135deg, rgba(108, 75, 255, 0.12), rgba(0, 180, 216, 0.08));
  border: 2px solid rgba(108, 75, 255, 0.3);
  border-radius: var(--r-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.vietqr-img {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: var(--r-md);
  margin: 1rem auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.bank-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem;
  margin-top: 1rem;
  text-align: left;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.85rem;
}
.bank-row strong {
  color: var(--text-1);
}

/* ── Form Cards (Service registration, intentions, feedback) ── */
.portal-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

/* ── Media gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Mobile menu ── */
.portal-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.5rem;
  cursor: pointer;
}

@media(max-width: 1024px) {
  .portal-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 8px;
    box-shadow: var(--shadow-lg);
  }
  .portal-menu.active {
    display: flex;
  }
  .portal-mobile-btn { display: block; }
  .donation-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}
@media(max-width: 640px) {
  .hero-title { font-size: 1.8rem; }
  .portal-nav-container { height: 60px; padding: 0 12px; }
  .portal-section { padding: 2.5rem 0; }
  .portal-form-card { padding: 1.25rem; }
  .portal-auth-btns .btn { padding: 5px 10px; font-size: 0.8rem; }
}
