.hdsb-board {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.65;
  box-sizing: border-box;
}

.hdsb-board *,
.hdsb-board *::before,
.hdsb-board *::after {
  box-sizing: border-box;
}

.hdsb-board__header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.hdsb-board__title {
  margin: 0 0 6px;
  color: #0f3f87;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

.hdsb-board__desc {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.hdsb-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.hdsb-notice--success {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.hdsb-notice--error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.hdsb-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 14px;
}

.hdsb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}

.hdsb-btn:hover {
  transform: translateY(-1px);
}

.hdsb-btn--primary {
  border-color: #0f5fbf;
  background: #0f5fbf;
  color: #fff !important;
}

.hdsb-btn--ghost {
  background: #f9fafb;
}

.hdsb-list {
  display: grid;
  gap: 12px;
}

.hdsb-item {
  padding: 18px 18px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.hdsb-item__title {
  display: inline-block;
  margin-bottom: 8px;
  color: #111827;
  text-decoration: none !important;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.hdsb-item__title:hover {
  color: #0f5fbf;
}

.hdsb-item__meta,
.hdsb-view__meta,
.hdsb-comment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #6b7280;
  font-size: 13px;
}

.hdsb-item__excerpt {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 15px;
}

.hdsb-empty {
  padding: 28px 18px;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  background: #f9fafb;
  color: #6b7280;
  text-align: center;
}

.hdsb-empty--small {
  padding: 16px;
  font-size: 14px;
}

.hdsb-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.hdsb-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #374151;
  text-decoration: none !important;
  background: #fff;
}

.hdsb-page.is-active {
  border-color: #0f5fbf;
  background: #0f5fbf;
  color: #fff;
}

.hdsb-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}

.hdsb-form--comment {
  margin-top: 18px;
}

.hdsb-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
}

.hdsb-form input[type="text"],
.hdsb-form input[type="password"],
.hdsb-form input[type="file"],
.hdsb-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

.hdsb-form input[type="text"],
.hdsb-form input[type="password"] {
  height: 44px;
  padding: 9px 12px;
}

.hdsb-form input[type="file"] {
  padding: 10px;
}

.hdsb-form textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.hdsb-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hdsb-form__note,
.hdsb-help {
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
}

.hdsb-form__note {
  margin: 0;
}

.hdsb-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.hdsb-view {
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}

.hdsb-view__title {
  margin: 0 0 10px;
  color: #111827;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
}

.hdsb-view__content {
  margin-top: 22px;
  color: #1f2937;
  word-break: break-word;
}

.hdsb-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.hdsb-images img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.hdsb-comments {
  margin-top: 24px;
}

.hdsb-comments h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #111827;
}

.hdsb-comment {
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
}

.hdsb-comment__content {
  margin-top: 8px;
  color: #374151;
  font-size: 15px;
}

@media (max-width: 767px) {
  .hdsb-board {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .hdsb-board__title {
    font-size: 21px;
  }

  .hdsb-toolbar {
    justify-content: stretch;
  }

  .hdsb-toolbar .hdsb-btn,
  .hdsb-form .hdsb-btn {
    width: 100%;
  }

  .hdsb-form,
  .hdsb-view,
  .hdsb-item {
    border-radius: 14px;
    padding: 15px;
  }

  .hdsb-form__grid,
  .hdsb-images {
    grid-template-columns: 1fr;
  }

  .hdsb-view__title {
    font-size: 21px;
  }
}

.hdsb-toolbar--split {
  justify-content: space-between;
}

.hdsb-delete {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  background: #fff7f7;
  color: #7f1d1d;
  font-size: 14px;
}

.hdsb-delete summary {
  cursor: pointer;
  font-weight: 700;
}

.hdsb-delete__form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.hdsb-delete__form input[type="password"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid #fca5a5;
  border-radius: 10px;
}

.hdsb-btn--danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff !important;
}

@media (max-width: 767px) {
  .hdsb-toolbar--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hdsb-delete__form {
    display: grid;
  }
}

/* v1.0.2: 테마 버튼 스타일 충돌 방지 */
.hdsb-board .hdsb-btn,
.hdsb-board a.hdsb-btn,
.hdsb-board button.hdsb-btn,
.hdsb-board input[type="submit"].hdsb-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  border: 1px solid #d1d5db !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.hdsb-board .hdsb-btn:hover,
.hdsb-board .hdsb-btn:focus,
.hdsb-board .hdsb-btn:active,
.hdsb-board a.hdsb-btn:hover,
.hdsb-board a.hdsb-btn:focus,
.hdsb-board button.hdsb-btn:hover,
.hdsb-board button.hdsb-btn:focus {
  background: #e5e7eb !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
}

.hdsb-board .hdsb-btn--primary,
.hdsb-board a.hdsb-btn--primary,
.hdsb-board button.hdsb-btn--primary,
.hdsb-board input[type="submit"].hdsb-btn--primary {
  border-color: #0f5fbf !important;
  background: #0f5fbf !important;
  color: #ffffff !important;
}

.hdsb-board .hdsb-btn--primary:hover,
.hdsb-board .hdsb-btn--primary:focus,
.hdsb-board .hdsb-btn--primary:active,
.hdsb-board a.hdsb-btn--primary:hover,
.hdsb-board a.hdsb-btn--primary:focus,
.hdsb-board button.hdsb-btn--primary:hover,
.hdsb-board button.hdsb-btn--primary:focus {
  border-color: #0b4ea2 !important;
  background: #0b4ea2 !important;
  color: #ffffff !important;
}

.hdsb-board .hdsb-btn--danger,
.hdsb-board button.hdsb-btn--danger {
  border-color: #dc2626 !important;
  background: #dc2626 !important;
  color: #ffffff !important;
}

.hdsb-board .hdsb-btn--danger:hover,
.hdsb-board button.hdsb-btn--danger:hover,
.hdsb-board .hdsb-btn--danger:focus,
.hdsb-board button.hdsb-btn--danger:focus {
  border-color: #b91c1c !important;
  background: #b91c1c !important;
  color: #ffffff !important;
}

/* v1.0.4: 아이콘형 하트 + 댓글 하트 */
.hdsb-item__footer,
.hdsb-view__actions,
.hdsb-comment__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.hdsb-comment__footer {
  margin-top: 8px;
}

.hdsb-meta-heart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
  font-weight: 600;
}

.hdsb-like {
  display: inline-flex;
  margin: 0;
}

.hdsb-like__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}

.hdsb-like__button--small {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.hdsb-like__button:hover,
.hdsb-like__button:focus {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #be185d;
  transform: translateY(-1px);
}

.hdsb-like__button.is-liked,
.hdsb-like__button:disabled {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #be185d;
  cursor: default;
  opacity: 1;
}

.hdsb-like__button.is-liked:hover,
.hdsb-like__button:disabled:hover {
  transform: none;
}

.hdsb-like__icon {
  font-size: 15px;
  line-height: 1;
}

.hdsb-like__count {
  min-width: 1ch;
}

@media (max-width: 767px) {
  .hdsb-item__footer,
  .hdsb-view__actions,
  .hdsb-comment__footer {
    margin-top: 10px;
  }
}
