/* ============================================================
   Bulletin / Notice Board — Bhajan Planner
   Mobile-first bulletin list, detail, and admin styles
   All hardcoded hex values replaced with design-system tokens.
   ============================================================ */

/* ── Bulletin Section on Home Page ────────────────────────── */
.bulletin-section {
  margin-top: 24px;
  margin-bottom: 24px;
}
.bulletin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bulletin-section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.bulletin-view-all {
  font-size: 13px;
  color: var(--saffron-dk);
  text-decoration: none;
  font-weight: 500;
}
.bulletin-view-all:hover {
  text-decoration: underline;
}

/* ── Bulletin Card ────────────────────────────────────────── */
.bulletin-card {
  display: block;
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.bulletin-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: var(--saffron);
}
.bulletin-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bulletin-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  color: #fff;
  white-space: nowrap;
}
.bulletin-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 6px;
  background: var(--clay);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bulletin-pin-badge {
  font-size: 13px;
}
.bulletin-card-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 5px;
  line-height: 1.35;
}
.bulletin-card-preview {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
}
.bulletin-card-date {
  font-size: 13px;
  color: var(--muted);
}

/* ── Bulletin List Page ───────────────────────────────────── */
.bulletin-list-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}
.bulletin-list-header {
  text-align: center;
  margin-bottom: 24px;
}
.bulletin-list-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.bulletin-list-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.bulletin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--saffron-dk);
  text-decoration: none;
  margin-bottom: 16px;
}
.bulletin-back-link:hover {
  text-decoration: underline;
}

/* ── Bulletin Detail Page ─────────────────────────────────── */
.bulletin-detail-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}
.bulletin-detail-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.bulletin-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bulletin-detail-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.3;
}
.bulletin-detail-content {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  word-wrap: break-word;
}
.bulletin-detail-content br {
  display: block;
  margin-bottom: 4px;
}

/* ── Admin Bulletin Management ────────────────────────────── */
.admin-bulletin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-bulletin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}
.admin-bulletin-table td {
  padding: 12px;
  font-size: 15px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  color: var(--ink-soft);
}
.admin-bulletin-table tr:hover td {
  background: var(--paper);
}
.admin-bulletin-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.admin-bulletin-status.published {
  background: var(--sage-bg);
  color: var(--sage);
}
.admin-bulletin-status.draft {
  background: var(--gold-bg);
  color: var(--saffron-dk);
}
.admin-bulletin-status.archived {
  background: var(--paper);
  color: var(--muted);
}
.admin-bulletin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-bulletin-actions a,
.admin-bulletin-actions button {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.admin-bulletin-actions a:hover,
.admin-bulletin-actions button:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--saffron);
}
.admin-bulletin-actions .btn-delete {
  border-color: rgba(178, 59, 50, 0.3);
  color: var(--clay);
}
.admin-bulletin-actions .btn-delete:hover {
  background: var(--clay-bg);
  border-color: var(--clay);
}

/* ── Admin Bulletin Form ──────────────────────────────────── */
.admin-bulletin-form {
  max-width: 700px;
}
.admin-bulletin-form .form-group {
  margin-bottom: 18px;
}
.admin-bulletin-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.admin-bulletin-form input[type="text"],
.admin-bulletin-form select,
.admin-bulletin-form textarea,
.admin-bulletin-form input[type="datetime-local"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}
.admin-bulletin-form input:focus,
.admin-bulletin-form select:focus,
.admin-bulletin-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(217, 138, 43, 0.16);
  background: var(--surface);
}
.admin-bulletin-form textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
}
.admin-bulletin-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-bulletin-form .checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--saffron);
}
.admin-bulletin-form .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.admin-bulletin-form .btn-save {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dk) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.admin-bulletin-form .btn-save:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.admin-bulletin-form .btn-cancel {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.admin-bulletin-form .btn-cancel:hover {
  background: var(--paper);
  border-color: var(--saffron);
  color: var(--saffron-dk);
}

/* ── Empty State ──────────────────────────────────────────── */
.bulletin-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.bulletin-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .bulletin-card {
    padding: 14px 16px;
  }
  .bulletin-detail-card {
    padding: 20px 16px;
  }
  .bulletin-detail-card h1 {
    font-size: 20px;
  }
  .admin-bulletin-table th:nth-child(3),
  .admin-bulletin-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 360px) {
  .bulletin-card-title {
    font-size: 16px;
  }
  .bulletin-card-preview {
    font-size: 13.5px;
  }
}
