/* ============================================================
   bulletin.css — 디지털 주보 스타일
   수원헤브론교회
   ============================================================ */

/* ── 주보 선택 탭바 ── */
.bulletin-selector-bar {
  background: var(--color-navy, #1b2a4a);
  padding: 1rem 0;
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.bulletin-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
}

.bulletin-tab-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 2rem;
  padding: .55rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.bulletin-tab-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.bulletin-tab-btn.active {
  background: var(--color-gold, #c9a84c);
  border-color: var(--color-gold, #c9a84c);
  color: #fff;
}

/* ── 전체 레이아웃 ── */
.bulletin-section {
  background: #f4f6fa;
  padding: 3rem 0 5rem;
}

.bulletin-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .bulletin-layout {
    grid-template-columns: 1fr;
  }
}

/* ── 주보 카드 공통 ── */
.b-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.b-card-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid #f0f0f0;
}

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

.b-icon.gold  { background: #fdf6e3; color: var(--color-gold, #c9a84c); }
.b-icon.navy  { background: #e8ecf5; color: var(--color-navy, #1b2a4a); }
.b-icon.green { background: #e8f5e9; color: #388e3c; }
.b-icon.rose  { background: #fce4ec; color: #c2185b; }
.b-icon.sky   { background: #e3f2fd; color: #1976d2; }

.b-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy, #1b2a4a);
  margin: 0;
}

/* ── 주보 헤더 카드 ── */
.bulletin-header-card {
  background: linear-gradient(135deg, var(--color-navy, #1b2a4a) 0%, #2d4a7a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.bulletin-header-card::before {
  content: '✝';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  opacity: .06;
  line-height: 1;
}

.bh-no {
  display: inline-block;
  background: var(--color-gold, #c9a84c);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 2rem;
  letter-spacing: .05em;
  margin-bottom: .8rem;
}

.bh-church {
  font-size: 1.2rem;
  opacity: .8;
  margin-bottom: .3rem;
}

.bh-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: .3rem;
  line-height: 1.2;
}

.bh-date {
  font-size: 1.1rem;
  opacity: .7;
  margin-bottom: 1.2rem;
}

.bh-verse-box {
  background: rgba(255,255,255,.12);
  border-left: 3px solid var(--color-gold, #c9a84c);
  border-radius: 0 8px 8px 0;
  padding: .8rem 1rem;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.bh-verse-ref {
  font-style: normal;
  font-size: .95rem;
  opacity: .75;
  margin-top: .3rem;
}

/* ── 예배 순서 ── */
.order-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem .8rem;
  border-radius: 8px;
  transition: background .15s;
}

.order-item:hover { background: #f8f9fc; }

.order-item.highlight {
  background: #fdf6e3;
  border: 1px solid #f0dfa0;
}

.order-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-navy, #1b2a4a);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-item.highlight .order-no {
  background: var(--color-gold, #c9a84c);
}

.order-content { flex: 1; }

.order-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
}

.order-detail {
  font-size: .92rem;
  color: #888;
  margin-top: .1rem;
}

.order-person {
  font-size: .95rem;
  color: #aaa;
  flex-shrink: 0;
}

/* ── 설교 정보 ── */
.sermon-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 600px) {
  .sermon-info-grid { grid-template-columns: 1fr; }
}

.si-item {
  background: #f8f9fc;
  border-radius: 8px;
  padding: .7rem .9rem;
}

.si-label {
  font-size: .85rem;
  color: #999;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}

.si-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy, #1b2a4a);
}

.sermon-title-main {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-navy, #1b2a4a);
  border-left: 4px solid var(--color-gold, #c9a84c);
  padding-left: .9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sermon-content {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  background: #f8f9fc;
  padding: 1rem;
  border-radius: 8px;
}

/* ── 공지사항 ── */
.notice-list { display: flex; flex-direction: column; gap: .9rem; }

.notice-item {
  display: flex;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 8px;
  background: #f8f9fc;
  border-left: 3px solid transparent;
}

.notice-item.urgent { border-left-color: #e53935; background: #fff5f5; }
.notice-item.info   { border-left-color: #1976d2; background: #f0f6ff; }
.notice-item.event  { border-left-color: #388e3c; background: #f1f8f1; }
.notice-item.pray   { border-left-color: var(--color-gold, #c9a84c); background: #fdfaf0; }

.notice-badge {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 2px;
  letter-spacing: .03em;
}

.notice-item.urgent .notice-badge { background: #ffebee; color: #c62828; }
.notice-item.info   .notice-badge { background: #e3f2fd; color: #1565c0; }
.notice-item.event  .notice-badge { background: #e8f5e9; color: #2e7d32; }
.notice-item.pray   .notice-badge { background: #fdf6e3; color: #8a6c0a; }

.notice-body { flex: 1; }

.notice-title {
  font-size: .92rem;
  font-weight: 700;
  color: #222;
  margin-bottom: .2rem;
}

.notice-desc {
  font-size: .82rem;
  color: #666;
  line-height: 1.6;
}

/* ── 기도 제목 ── */
.prayer-list { display: flex; flex-direction: column; gap: .6rem; }

.prayer-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .6rem .8rem;
  background: #fdfaf0;
  border-radius: 8px;
  border: 1px solid #f5e8a0;
}

.prayer-item i {
  color: var(--color-gold, #c9a84c);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: .85rem;
}

.prayer-item p {
  font-size: .88rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── 사이드바 ── */
.bulletin-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── 주간 일정 ── */
.schedule-list { display: flex; flex-direction: column; gap: .5rem; }

.schedule-day-label {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-navy, #1b2a4a);
  padding: .2rem .7rem;
  border-radius: 4px;
  display: inline-block;
  margin: .3rem 0 .2rem;
  letter-spacing: .04em;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem .6rem;
  border-radius: 6px;
  background: #f8f9fc;
}

.schedule-time {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-gold, #c9a84c);
  min-width: 50px;
  flex-shrink: 0;
}

.schedule-name {
  font-size: .82rem;
  color: #444;
  line-height: 1.4;
}

/* ── 성경 읽기 ── */
.bible-reading-card { }

.bible-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.bible-table th {
  background: var(--color-navy, #1b2a4a);
  color: #fff;
  padding: .5rem .7rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
}

.bible-table td {
  padding: .5rem .7rem;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.bible-table tr:last-child td { border-bottom: none; }

.bible-table tr:nth-child(even) td { background: #f8f9fc; }

/* ── 헌금 정보 ── */
.offering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

@media (max-width: 600px) {
  .offering-grid { grid-template-columns: 1fr; }
}

.offering-item {
  background: #f8f9fc;
  border-radius: 8px;
  padding: .7rem .9rem;
  text-align: center;
}

.offering-type {
  font-size: .72rem;
  color: #999;
  font-weight: 600;
  margin-bottom: .2rem;
}

.offering-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-navy, #1b2a4a);
}

/* ── 이번 주 봉사자 ── */
.servant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.servant-item {
  background: #f8f9fc;
  border-radius: 8px;
  padding: .6rem .8rem;
}

.servant-role {
  font-size: .72rem;
  color: #999;
  font-weight: 600;
  margin-bottom: .2rem;
}

.servant-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-navy, #1b2a4a);
}

/* ── 빈 상태 ── */
.bulletin-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #aaa;
}

.bulletin-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .b-card { padding: 1.4rem; }
  .bulletin-header-card { padding: 1.8rem 1.4rem; }
  .bh-title { font-size: 1.4rem; }
}
