/* =========================================================
   Houston Trade Pros — Business Edit Page Styles
   ========================================================= */

/* ── Layout ───────────────────────────────────────────── */
.biz-edit-main { min-height: calc(100vh - 56px); }

.biz-edit-hero {
  background: var(--white);
  border-bottom: 1px solid #e8eaed;
  padding: 24px 0;
}
.biz-edit-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.biz-edit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-800);
  margin: 0;
}

/* ── Tabs ─────────────────────────────────────────────── */
.biz-edit-tabs-wrap {
  background: var(--white);
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 56px;
  z-index: 100;
  overflow-x: auto;
}
.biz-edit-tabs {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  white-space: nowrap;
}
.biz-edit-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-500);
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.biz-edit-tab:hover { color: var(--primary); }
.biz-edit-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Body ─────────────────────────────────────────────── */
.biz-edit-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.biz-edit-panel { display: none; }
.biz-edit-panel.active { display: block; }

/* ── Service areas ────────────────────────────────────── */
.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.area-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  background: var(--white);
  transition: background .15s, border-color .15s;
}
.area-checkbox:hover { background: var(--grey-50); border-color: var(--primary); }
.area-checkbox input { accent-color: var(--primary); }

/* ── Hours ────────────────────────────────────────────── */
.hours-grid { display: flex; flex-direction: column; gap: 10px; }
.hours-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 6px 0 2px;
  color: var(--grey-400); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.hours-divider::before, .hours-divider::after { content:''; flex:1; height:1px; background:var(--grey-200); }
.hours-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--grey-50);
  border-radius: 10px;
  flex-wrap: wrap;
}
.hours-day { font-weight: 600; font-size: 14px; min-width: 90px; }
.hours-closed-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; min-width: 80px; }
.hours-times { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; transition: opacity .2s; }

/* ── Gallery ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  border: 1px solid #e8eaed;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.gallery-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.ba-preview {
  display: flex;
  gap: 4px;
  height: 160px;
  position: relative;
  overflow: hidden;
}
.ba-preview img { width: 50%; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.gallery-item-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  flex-wrap: wrap;
}
.gallery-item-footer .action-btn { margin-left: auto; }

/* ── Content lists (blog/events/jobs/news) ────────────── */
.content-list { display: flex; flex-direction: column; gap: 12px; }
.content-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid #e8eaed;
  border-radius: 12px;
}
.content-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.content-item-body { flex: 1; min-width: 0; }
.content-item-title { font-weight: 600; font-size: 14px; color: var(--grey-800); margin-bottom: 4px; }
.content-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Event Cards ─────────────────────────────────────── */
.event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.event-card {
  background: var(--white);
  border: 1px solid #e8eaed;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.event-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.event-card-img-wrap {
  position: relative;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}
.event-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.event-card:hover .event-card-img { transform: scale(1.04); }
.event-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8eaed, #f8f9fb); }
.event-card-date {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  padding: 5px 9px;
  text-align: center;
  min-width: 42px;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  line-height: 1;
}
.event-date-mon { display: block; font-size: 10px; font-weight: 700; color: #ef4444; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.event-date-day { display: block; font-size: 17px; font-weight: 800; color: var(--grey-800); }
.event-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.event-card-title { font-weight: 700; font-size: 14px; color: var(--grey-800); line-height: 1.4; }
.event-card-meta { font-size: 12px; color: var(--grey-500); display: flex; align-items: center; gap: 5px; }
.event-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
  justify-content: flex-end;
}
.event-card-actions .action-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.event-action-preview {
  color: #2563eb !important; border-color: #bfdbfe !important; background: #eff6ff !important;
  text-decoration: none;
}
.event-action-preview:hover { background: #dbeafe !important; }
.event-action-edit {
  color: #d97706 !important; border-color: #fde68a !important; background: #fffbeb !important;
}
.event-action-edit:hover { background: #fef3c7 !important; }
.event-action-delete {
  color: #dc2626 !important; border-color: #fecaca !important; background: #fef2f2 !important;
}
.event-action-delete:hover { background: #fee2e2 !important; }

/* ── Blog Cards ───────────────────────────────────────── */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--white);
  border: 1px solid #e8eaed;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.blog-card-img-wrap {
  position: relative;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8eaed, #f8f9fb); }
.blog-card-date {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,.95);
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  min-width: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.blog-date-mon { display: block; font-size: 10px; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.blog-date-day { display: block; font-size: 16px; font-weight: 700; color: var(--grey-800); line-height: 1; }
.blog-card-status {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.blog-card-body { padding: 14px 16px; flex: 1; }
.blog-card-title { font-weight: 700; font-size: 14px; color: var(--grey-800); margin-bottom: 6px; line-height: 1.4; }
.blog-card-preview { font-size: 12px; color: var(--grey-400); line-height: 1.5; }
.blog-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
  justify-content: flex-end;
}

/* ── Blog card action button colours ─────────────────── */
.blog-card-actions .action-btn:nth-child(1) { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.blog-card-actions .action-btn:nth-child(1):hover { background: #dbeafe; }
.blog-card-actions .action-btn:nth-child(2) { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.blog-card-actions .action-btn:nth-child(2):hover { background: #fef3c7; }
.blog-card-actions .action-btn:nth-child(3) { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.blog-card-actions .action-btn:nth-child(3):hover { background: #fee2e2; }

/* ── Section dividers ─────────────────────────────────── */
.edit-section + .edit-section { margin-top: 24px; }

@media (max-width: 600px) {
  .biz-edit-tab { padding: 12px 12px; font-size: 12px; }
  .hours-row { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-card-grid { grid-template-columns: 1fr; }
}
