/**
 * @file
 * Advanced Layout Builder Tabs – front-end and Layout Builder edit-mode styles.
 *
 * SMACSS buckets used:
 *  component – tab nav bar, tab pane visibility, LB edit-mode chrome.
 *
 * Column grid is handled by Bootstrap (row / col-*) classes in the template.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   TAB NAVIGATION BAR
═══════════════════════════════════════════════════════════════════════════ */

.layout--adv-lb-tabs .layout-adv-lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #dee2e6;
}

.layout--adv-lb-tabs .layout-adv-lb-tabs .tabs__tab {
  margin: 0;
}

.layout--adv-lb-tabs .layout-adv-lb-tabs .nav-link {
  display: block;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: background 0.15s;
}

.layout--adv-lb-tabs .layout-adv-lb-tabs .nav-link:hover {
  background: #f0f4ff;
}

.layout--adv-lb-tabs .layout-adv-lb-tabs .nav-link.is-active {
  background: #fff;
  border-color: #dee2e6;
  margin-bottom: -2px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER / FOOTER REGIONS (front end)
   Wrap the whole set of tabs; spacing only applies once a block is placed.
═══════════════════════════════════════════════════════════════════════════ */

.layout--adv-lb-tabs .adv-lb-tabs__header:not(:empty) {
  margin-bottom: 1.5rem;
}

.layout--adv-lb-tabs .adv-lb-tabs__footer:not(:empty) {
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAB PANES
═══════════════════════════════════════════════════════════════════════════ */

.layout--adv-lb-tabs .tab-content .tab-pane {
  display: none;
  padding-top: 1.25rem;
}

.layout--adv-lb-tabs .tab-content .tab-pane.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT BUILDER EDIT MODE
═══════════════════════════════════════════════════════════════════════════ */

/* One tab block */
.adv-lb-tabs__lb-tab {
  margin-bottom: 1.5rem;
  border: 2px dashed #90aed4;
  border-radius: 6px;
  overflow: hidden;
}

/* Tab header strip */
.adv-lb-tabs__lb-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a237e;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
}

.adv-lb-tabs__lb-tab-hint {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Column container inside edit mode */
.adv-lb-tabs__lb-columns {
  display: grid;
  gap: 0;
}

.adv-lb-tabs__lb-columns--1col {
  grid-template-columns: 1fr;
}

.adv-lb-tabs__lb-columns--2col {
  grid-template-columns: repeat(2, 1fr);
}

.adv-lb-tabs__lb-columns--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Individual column drop zone */
.adv-lb-tabs__lb-col {
  border-right: 1px dashed #90aed4;
}
.adv-lb-tabs__lb-col:last-child {
  border-right: none;
}

/* Column label (Left / Centre / Right) */
.adv-lb-tabs__lb-col-label {
  background: #e8f0fe;
  color: #1a237e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-bottom: 1px solid #c5d8fb;
}

/* Header / footer drop zones — wrap the whole set of tabs. Uses a distinct
   accent (teal) so editors can tell them apart from the per-tab (blue)
   column drop zones at a glance. */
.adv-lb-tabs__lb-region {
  margin-bottom: 1.5rem;
  border: 2px dashed #4d9e94;
  border-radius: 6px;
  overflow: hidden;
}

.adv-lb-tabs__lb-region--footer {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.adv-lb-tabs__lb-region-label {
  background: #0f5c53;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
}

.adv-lb-tabs__lb-region-label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.adv-lb-tabs__lb-region > .layout__region {
  padding: 0.5rem;
}
