/* ==========================================================================
   Community Bulletin Board — Corkboard Design
   Scoped to .corkboard-page so styles never leak to other pages.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Cork Background
   --------------------------------------------------------------------------- */
.corkboard-page {
  background:
    /* Subtle radial dots to simulate cork grain */
    radial-gradient(circle 1px, rgba(139, 109, 70, 0.15) 1px, transparent 1px),
    radial-gradient(circle 2px, rgba(160, 130, 80, 0.08) 1px, transparent 1px),
    radial-gradient(circle 1.5px, rgba(120, 90, 55, 0.1) 1px, transparent 1px),
    /* Base cork gradient */
    linear-gradient(145deg, #c4a882 0%, #b8976a 50%, #d4b68a 100%);
  background-size:
    23px 23px,
    47px 47px,
    31px 31px,
    100% 100%;
  background-position:
    0 0,
    12px 12px,
    7px 5px,
    0 0;
  background-attachment: fixed;
  min-height: 100vh;
}

/* ---------------------------------------------------------------------------
   Wood-Frame Header Bar
   --------------------------------------------------------------------------- */
.board-header {
  background: linear-gradient(180deg, #5d4037, #4e342e);
  border-bottom: 3px solid #2c209b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 24px 0;
  position: relative;
  z-index: 20;
}

.board-header .board-title {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff9f0;
  line-height: 1.1;
}

.board-header .board-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: rgba(255, 249, 240, 0.7);
  margin-top: 4px;
}

/* ---------------------------------------------------------------------------
   "Pin a Post" Button
   --------------------------------------------------------------------------- */
.pin-post-btn {
  font-family: Caveat, cursive;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 24px;
  background: linear-gradient(135deg, #f44c27, #d93d1a);
  color: #fff9f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pin-post-btn:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  color: #fff9f0;
}

/* Variant for use inside the board (on cork background) */
.pin-post-btn--light {
  background: linear-gradient(135deg, #fff9f0, #f5ede0);
  color: #2c209b;
  border: 2px solid #2c209b;
}

.pin-post-btn--light:hover {
  background: linear-gradient(135deg, #f5ede0, #e8dcc8);
  color: #1e1670;
}

/* ---------------------------------------------------------------------------
   Search Input (Board Style)
   --------------------------------------------------------------------------- */
.board-search {
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  padding: 10px 16px 10px 36px;
  border: 2px solid rgba(93, 64, 55, 0.2);
  border-radius: 4px;
  background: rgba(255, 249, 240, 0.9);
  color: #4e342e;
  width: 100%;
  transition: border-color 0.2s ease;
}

.board-search:focus {
  border-color: #84d6be;
  outline: none;
  background: rgba(255, 249, 240, 1);
}

.board-search::placeholder {
  color: rgba(78, 52, 46, 0.4);
}

/* ---------------------------------------------------------------------------
   Category Filter Buttons
   --------------------------------------------------------------------------- */
.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
}

.board-filter-btn {
  font-family: Caveat, cursive;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 12px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 249, 240, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.board-filter-btn:hover {
  background: rgba(255, 249, 240, 0.15);
  color: #fff9f0;
}

.board-filter-btn.active {
  background: rgba(44, 32, 155, 0.25);
  color: #fff9f0;
  font-weight: 700;
}

/* Filters on the cork area (darker text) */
.board-filters--cork .board-filter-btn {
  color: #5d4037;
  background: rgba(255, 249, 240, 0.5);
  border: 1px solid rgba(93, 64, 55, 0.15);
}

.board-filters--cork .board-filter-btn:hover {
  background: rgba(255, 249, 240, 0.8);
}

.board-filters--cork .board-filter-btn.active {
  background: rgba(44, 32, 155, 0.1);
  font-weight: 700;
  border-color: rgba(44, 32, 155, 0.25);
  color: #2c209b;
}

/* ---------------------------------------------------------------------------
   Masonry Grid Layout
   --------------------------------------------------------------------------- */
.board-grid {
  column-count: 3;
  column-gap: 18px;
  padding: 24px 0;
}

.board-grid > .board-card-wrapper {
  break-inside: avoid;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
}

@media (max-width: 900px) {
  .board-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .board-grid {
    column-count: 1;
  }

  /* Avoid janky scrolling on mobile caused by background-attachment: fixed */
  .corkboard-page {
    background-attachment: scroll;
  }
}

/* ---------------------------------------------------------------------------
   Board Cards — Base
   --------------------------------------------------------------------------- */
.board-card {
  position: relative;
  border-radius: 2px;
  padding: 20px 16px 24px;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.12), 1px 1px 3px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.board-card:hover {
  transform: rotate(0deg) scale(1.03);
  z-index: 10;
  box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.2), 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.board-card a {
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Paper Styles by Category
   --------------------------------------------------------------------------- */

/* Offering Help → Lined paper */
.board-card.category-offering_help {
  background:
    repeating-linear-gradient(transparent, transparent 27px, #e8d5d5 27px, #e8d5d5 28px),
    linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
  border-left: 3px solid #e8b4b8;
  padding-left: 20px;
}

/* Looking For → Yellow sticky note */
.board-card.category-looking_for {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 50%, #fff176 100%);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15), inset 0 0 40px rgba(255, 255, 255, 0.3);
}

.board-card.category-looking_for:hover {
  box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.2), inset 0 0 40px rgba(255, 255, 255, 0.3);
}

/* Announcements → Clean white paper */
.board-card.category-announcements {
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f0 100%);
  border: 1px solid #e0ddd5;
}

/* Local Art & Culture → Colored flyer (green) */
.board-card.category-art_culture {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.12);
}

.board-card.category-art_culture:hover {
  box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.2);
}

/* Free Stuff / Sharing → Index card */
.board-card.category-free_sharing {
  background: #fff;
  border: 2px solid #4fc3f7;
  border-top: none;
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, 0.1),
    inset 0 3px 0 0 #4fc3f7,
    inset 0 6px 0 0 #fff,
    inset 0 9px 0 0 #4fc3f7;
}

.board-card.category-free_sharing:hover {
  box-shadow:
    4px 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 3px 0 0 #4fc3f7,
    inset 0 6px 0 0 #fff,
    inset 0 9px 0 0 #4fc3f7;
}

/* General → Notebook paper */
.board-card.category-general {
  background:
    repeating-linear-gradient(transparent, transparent 27px, #c5cae9 27px, #c5cae9 28px),
    linear-gradient(135deg, #f3f0ff 0%, #ede7f6 100%);
  border-left: 4px solid #ff7043;
  padding-left: 18px;
}

/* ---------------------------------------------------------------------------
   Pushpin
   --------------------------------------------------------------------------- */
.pushpin {
  position: absolute;
  top: -8px;
  z-index: 3;
  pointer-events: none;
}

.pin-svg {
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.3));
}

/* ---------------------------------------------------------------------------
   Tape Strip
   --------------------------------------------------------------------------- */
.tape-strip {
  width: 60px;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 230, 0.7), rgba(240, 235, 200, 0.6));
  border: 1px solid rgba(200, 195, 160, 0.3);
  position: absolute;
  top: -6px;
  left: 20%;
  z-index: 3;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Torn Paper Edge
   --------------------------------------------------------------------------- */
.card-torn-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 6px;
  background: inherit;
  clip-path: polygon(
    0% 0%, 3% 80%, 6% 20%, 9% 70%, 12% 10%, 15% 90%,
    18% 30%, 21% 60%, 24% 0%, 27% 80%, 30% 20%, 33% 70%,
    36% 10%, 39% 60%, 42% 30%, 45% 80%, 48% 0%, 51% 90%,
    54% 20%, 57% 70%, 60% 10%, 63% 60%, 66% 30%, 69% 80%,
    72% 0%, 75% 90%, 78% 20%, 81% 70%, 84% 10%, 87% 80%,
    90% 30%, 93% 60%, 96% 0%, 100% 80%, 100% 100%, 0% 100%
  );
  opacity: 0.4;
}

/* ---------------------------------------------------------------------------
   Card Content Typography
   --------------------------------------------------------------------------- */
.card-content {
  position: relative;
  z-index: 1;
}

.card-content .category-badge {
  font-family: Caveat, cursive;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  color: #5d4037;
  background: rgba(93, 64, 55, 0.08);
}

.card-content .card-title {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #3e2723;
  margin: 0 0 8px;
}

.card-content .card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.card-content .card-title a:hover {
  color: #2c209b;
}

.card-content .card-body {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  line-height: 1.5;
  color: #4e342e;
  margin: 0 0 10px;
}

.card-content .card-image {
  margin: 10px -16px;
  overflow: hidden;
  border-radius: 2px;
}

.card-content .card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------------------
   Tags
   --------------------------------------------------------------------------- */
.board-tag {
  font-family: 'Patrick Hand', cursive;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: #6d4c41;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.board-tag:hover {
  background: rgba(44, 32, 155, 0.1);
  color: #2c209b;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------------
   Card Footer
   --------------------------------------------------------------------------- */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.card-footer .card-author {
  font-family: Caveat, cursive;
  font-weight: 600;
  font-size: 14px;
  color: #5d4037;
}

.card-footer .card-time {
  font-family: 'Patrick Hand', cursive;
  font-size: 12px;
  color: #8d6e63;
}

.card-footer .card-responses {
  font-family: 'Patrick Hand', cursive;
  font-size: 12px;
  color: #8d6e63;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ---------------------------------------------------------------------------
   Empty State
   --------------------------------------------------------------------------- */
.board-empty {
  text-align: center;
  padding: 64px 16px;
}

.board-empty p {
  font-family: Caveat, cursive;
  font-size: 24px;
  color: #8d6e63;
}

/* ---------------------------------------------------------------------------
   Pagination (Board Style)
   --------------------------------------------------------------------------- */
.board-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}

.board-pagination a {
  font-family: Caveat, cursive;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 20px;
  background: rgba(255, 249, 240, 0.85);
  color: #4e342e;
  border: 1px solid rgba(93, 64, 55, 0.2);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.board-pagination a:hover {
  background: rgba(255, 249, 240, 1);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
  border-color: rgba(44, 32, 155, 0.25);
}

.board-pagination span {
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  color: #5d4037;
}

/* ---------------------------------------------------------------------------
   Join CTA (unauthenticated users)
   --------------------------------------------------------------------------- */
.board-join-cta {
  background: rgba(255, 249, 240, 0.7);
  border-top: 2px dashed rgba(93, 64, 55, 0.2);
  padding: 48px 16px;
  text-align: center;
}

.board-join-cta h2 {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 1.75rem;
  color: #3e2723;
  margin-bottom: 8px;
}

.board-join-cta p {
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  color: #5d4037;
  margin-bottom: 24px;
}

/* ---------------------------------------------------------------------------
   Detail Page — Single Card View
   --------------------------------------------------------------------------- */
.board-detail-card {
  position: relative;
  background: linear-gradient(145deg, #fff9f0 0%, #f5ede0 100%);
  border-radius: 2px;
  padding: 32px 28px 36px;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.15), 1px 1px 3px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

/* Category overrides for detail cards */
.board-detail-card.category-offering_help {
  background:
    repeating-linear-gradient(transparent, transparent 27px, #e8d5d5 27px, #e8d5d5 28px),
    linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
  border-left: 3px solid #e8b4b8;
  padding-left: 28px;
}

.board-detail-card.category-looking_for {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 50%, #fff176 100%);
}

.board-detail-card.category-announcements {
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f0 100%);
  border: 1px solid #e0ddd5;
}

.board-detail-card.category-art_culture {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
}

.board-detail-card.category-free_sharing {
  background: #fff;
  border: 2px solid #4fc3f7;
  border-top: none;
  box-shadow:
    3px 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 3px 0 0 #4fc3f7,
    inset 0 6px 0 0 #fff,
    inset 0 9px 0 0 #4fc3f7;
}

.board-detail-card.category-general {
  background:
    repeating-linear-gradient(transparent, transparent 27px, #c5cae9 27px, #c5cae9 28px),
    linear-gradient(135deg, #f3f0ff 0%, #ede7f6 100%);
  border-left: 4px solid #ff7043;
  padding-left: 26px;
}

.board-detail-card .detail-category {
  font-family: Caveat, cursive;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
  color: #5d4037;
  background: rgba(93, 64, 55, 0.08);
}

.board-detail-card .detail-title {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  color: #3e2723;
  margin: 0 0 16px;
}

.board-detail-card .detail-meta {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: #8d6e63;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.board-detail-card .detail-meta .author-name {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 17px;
  color: #4e342e;
}

.board-detail-card .detail-body {
  font-family: 'Patrick Hand', cursive;
  font-size: 17px;
  line-height: 1.6;
  color: #4e342e;
  margin-bottom: 20px;
}

.board-detail-card .detail-body p {
  margin-bottom: 12px;
}

.board-detail-card .detail-link {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: #2c209b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.board-detail-card .detail-link:hover {
  color: #1e1670;
}

.board-detail-card .detail-image {
  margin: 16px -28px;
  overflow: hidden;
}

.board-detail-card .detail-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.board-detail-card .detail-actions {
  display: flex;
  gap: 8px;
}

.board-detail-card .detail-actions a {
  font-family: Caveat, cursive;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.board-detail-card .detail-actions .btn-edit {
  background: rgba(93, 64, 55, 0.08);
  color: #5d4037;
  border: 1px solid rgba(93, 64, 55, 0.2);
}

.board-detail-card .detail-actions .btn-edit:hover {
  background: rgba(93, 64, 55, 0.15);
}

.board-detail-card .detail-actions .btn-delete {
  background: rgba(211, 47, 47, 0.08);
  color: #c62828;
  border: 1px solid rgba(211, 47, 47, 0.2);
}

.board-detail-card .detail-actions .btn-delete:hover {
  background: rgba(211, 47, 47, 0.15);
}

.board-detail-card .detail-expiry {
  font-family: 'Patrick Hand', cursive;
  font-size: 13px;
  color: #8d6e63;
  margin-top: 16px;
}

.board-detail-card .detail-expiry .expired {
  color: #c62828;
}

/* ---------------------------------------------------------------------------
   Detail Page — Response / Flag Panels
   --------------------------------------------------------------------------- */
.board-panel {
  background: rgba(255, 249, 240, 0.85);
  border: 1px solid rgba(93, 64, 55, 0.15);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.08);
}

.board-panel h2 {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 1.4rem;
  color: #3e2723;
  margin-bottom: 12px;
}

.board-panel p,
.board-panel .text-sm {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: #5d4037;
}

.board-panel a {
  color: #2c209b;
}

.board-panel a:hover {
  color: #1e1670;
}

/* Responses list panel */
.board-responses-panel {
  background: rgba(255, 249, 240, 0.85);
  border: 1px solid rgba(93, 64, 55, 0.15);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.08);
  margin-top: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.board-responses-panel h2 {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 1.4rem;
  color: #3e2723;
  margin-bottom: 16px;
}

.board-response-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
}

.board-response-item:not(:last-child) {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.board-response-item .resp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(93, 64, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 14px;
  color: #5d4037;
}

.board-response-item .resp-name {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 15px;
  color: #4e342e;
}

.board-response-item .resp-message {
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  color: #5d4037;
  margin-top: 2px;
}

.board-response-item .resp-time {
  font-family: 'Patrick Hand', cursive;
  font-size: 12px;
  color: #8d6e63;
  margin-top: 2px;
}

/* ---------------------------------------------------------------------------
   Detail Page — Breadcrumb
   --------------------------------------------------------------------------- */
.board-breadcrumb {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  padding: 16px 0;
}

.board-breadcrumb a {
  color: #5d4037;
  text-decoration: none;
  transition: color 0.2s ease;
}

.board-breadcrumb a:hover {
  color: #2c209b;
}

.board-breadcrumb .separator {
  color: #a1887f;
  margin: 0 8px;
}

.board-breadcrumb .current {
  color: #8d6e63;
}

/* ---------------------------------------------------------------------------
   Create / Edit Form (Warm Aesthetic)
   --------------------------------------------------------------------------- */
.board-form-card {
  background: linear-gradient(145deg, #fff9f0 0%, #f5ede0 100%);
  border-radius: 4px;
  padding: 32px 28px;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.12);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.board-form-card h1 {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 2rem;
  color: #3e2723;
  margin-bottom: 4px;
}

.board-form-card .form-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  color: #8d6e63;
  margin-bottom: 28px;
}

.board-form-card label {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 17px;
  color: #4e342e;
  display: block;
  margin-bottom: 4px;
}

.board-form-card label .optional {
  font-weight: 400;
  font-size: 14px;
  color: #a1887f;
}

.board-form-card input[type="text"],
.board-form-card input[type="url"],
.board-form-card textarea,
.board-form-card select {
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(93, 64, 55, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: #4e342e;
  transition: border-color 0.2s ease;
}

.board-form-card input[type="text"]:focus,
.board-form-card input[type="url"]:focus,
.board-form-card textarea:focus,
.board-form-card select:focus {
  border-color: #84d6be;
  outline: none;
  background: #fff;
}

.board-form-card .help-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 13px;
  color: #a1887f;
  margin-top: 4px;
}

.board-form-card .error-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 13px;
  color: #c62828;
  margin-top: 4px;
}

.board-form-card .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.board-form-card .form-footer .cancel-link {
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  color: #8d6e63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.board-form-card .form-footer .cancel-link:hover {
  color: #5d4037;
}

.board-form-card .form-footer .submit-btn {
  font-family: Caveat, cursive;
  font-size: 20px;
  font-weight: 700;
  padding: 8px 28px;
  background: linear-gradient(135deg, #f44c27, #d93d1a);
  color: #fff9f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.board-form-card .form-footer .submit-btn:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* File input styling */
.board-form-card input[type="file"] {
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  color: #5d4037;
}

/* Status banner */
.board-status-banner {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.board-status-banner.warning {
  background: rgba(255, 249, 196, 0.8);
  border: 1px solid rgba(245, 127, 23, 0.3);
  color: #5d4037;
}

.board-status-banner button {
  font-family: Caveat, cursive;
  font-weight: 700;
  text-decoration: underline;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Hub Controls (board.html)
   --------------------------------------------------------------------------- */
.hub-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.hub-label {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: #5d4037;
}

.hub-select {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  padding: 4px 10px;
  border: 1px solid rgba(93, 64, 55, 0.2);
  border-radius: 4px;
  background: rgba(255, 249, 240, 0.85);
  color: #4e342e;
}

.hub-clear-link {
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  color: #8d6e63;
  margin-left: 12px;
  text-decoration: none;
}

.hub-clear-link:hover {
  color: #5d4037;
}

/* ---------------------------------------------------------------------------
   My Posts Page
   --------------------------------------------------------------------------- */
.my-posts-title {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 2rem;
  color: #3e2723;
}

.my-posts-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: #8d6e63;
}

.my-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-post-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-post-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.my-post-info {
  flex: 1;
  min-width: 0;
}

.my-post-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.my-post-title {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 1.3rem;
  color: #3e2723;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-post-title a {
  color: inherit;
  text-decoration: none;
}

.my-post-meta {
  font-family: 'Patrick Hand', cursive;
  font-size: 13px;
  color: #8d6e63;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.my-post-flagged {
  color: #c62828;
}

.my-post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Status & Category Badges (My Posts)
   --------------------------------------------------------------------------- */
.status-badge {
  font-family: 'Patrick Hand', cursive;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
}

.status-badge--active {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.status-badge--expired {
  background: rgba(0, 0, 0, 0.04);
  color: #8d6e63;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.status-badge--removed {
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.2);
}

.my-post-category-badge {
  font-family: 'Patrick Hand', cursive;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(93, 64, 55, 0.06);
  color: #5d4037;
}

/* ---------------------------------------------------------------------------
   Corkboard Action Buttons (My Posts)
   --------------------------------------------------------------------------- */
.corkboard-action {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 14px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.corkboard-action--edit {
  background: rgba(93, 64, 55, 0.08);
  color: #5d4037;
  border: 1px solid rgba(93, 64, 55, 0.2);
}

.corkboard-action--edit:hover {
  background: rgba(93, 64, 55, 0.15);
}

.corkboard-action--renew {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.corkboard-action--renew:hover {
  background: rgba(46, 125, 50, 0.15);
}

.corkboard-action--delete {
  background: rgba(198, 40, 40, 0.06);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.15);
}

.corkboard-action--delete:hover {
  background: rgba(198, 40, 40, 0.12);
}

/* ---------------------------------------------------------------------------
   Delete Confirm Page
   --------------------------------------------------------------------------- */
.delete-confirm-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.delete-confirm-form .cancel-link {
  font-family: 'Patrick Hand', cursive;
  font-size: 17px;
  color: #8d6e63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.delete-confirm-form .cancel-link:hover {
  color: #5d4037;
}

.submit-btn--danger {
  font-family: Caveat, cursive;
  font-size: 20px;
  font-weight: 700;
  padding: 8px 28px;
  background: linear-gradient(135deg, #c62828, #b71c1c);
  color: #fff9f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.submit-btn--danger:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
