/* TJM Tabbed Sections (frontend)
   Designed to resemble the provided reference (dark header, icon + label, active glow underline).
*/

.tjm-tabs{
  --tjm-active-glow: #1aa8ff;
  --tjm-container-bg: #222a36;
  --tjm-header-bg: #1a2230;
  --tjm-content-bg: #2b3441;
  --tjm-border-color: #2a3240;
  --tjm-border-width: 1px;
  --tjm-container-radius: 14px;
  --tjm-header-radius: 14px;
  --tjm-content-radius: 12px;

  --tjm-content-text-color: #b9c4d6;
  --tjm-content-font-size: 16px;
  --tjm-content-font-weight: 400;
  --tjm-content-font-style: normal;
  --tjm-content-text-decoration: none;

  background: var(--tjm-container-bg);
  border: var(--tjm-border-width) solid var(--tjm-border-color);
  border-radius: var(--tjm-container-radius);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.tjm-tabs__header{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0)) , var(--tjm-header-bg);
  border-bottom: 1px solid var(--tjm-border-color);
  padding: 0;
  margin: 0;
  border-top-left-radius: var(--tjm-header-radius);
  border-top-right-radius: var(--tjm-header-radius);
}

.tjm-tabs__tab{
  --tjm-tab-bg: transparent;
  --tjm-tab-color: rgba(185,196,214,0.75);
  --tjm-tab-weight: 700;
  --tjm-tab-font-size: 13px;
  --tjm-tab-style: normal;
  --tjm-tab-decoration: none;

  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  border: 0;
  background: var(--tjm-tab-bg);
  color: var(--tjm-tab-color);
  cursor: pointer;
  padding: 16px 16px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12px;
  line-height: 1.1;
  font-size: var(--tjm-tab-font-size);
  font-weight: var(--tjm-tab-weight);
  font-style: var(--tjm-tab-style);
  text-decoration: var(--tjm-tab-decoration);
  outline: none;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.tjm-tabs__tab:last-child{
  border-right: 0;
}

.tjm-tabs__tab:hover{
  background: rgba(255,255,255,0.03);
  color: rgba(185,196,214,0.92);
}

.tjm-tabs__tab.is-active{
  color: rgba(255,255,255,0.95);
  background: linear-gradient(180deg, rgba(26,168,255,0.12), rgba(0,0,0,0));
}

.tjm-tabs__tab.is-active::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  background: var(--tjm-active-glow);
  box-shadow:
    0 0 14px rgba(26,168,255,0.55),
    0 0 28px rgba(26,168,255,0.35);
  border-radius: 6px;
}

.tjm-tabs__icon{
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.tjm-tabs__icon img{
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.tjm-tabs__icon .dashicons{
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  color: rgba(217, 184, 109, 0.95); /* subtle gold vibe; overridden if you use per-tab text color */
}

.tjm-tabs__label{
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tjm-tabs__body{
  background: var(--tjm-content-bg);
  border-bottom-left-radius: var(--tjm-content-radius);
  border-bottom-right-radius: var(--tjm-content-radius);
}

.tjm-tabs__panel{
  padding: 26px 34px;
}

.tjm-tabs__content{
  color: var(--tjm-content-text-color);
  font-weight: var(--tjm-content-font-weight);
  font-style: var(--tjm-content-font-style);
  text-decoration: var(--tjm-content-text-decoration);
  font-size: var(--tjm-content-font-size);
  line-height: 1.65;
}

.tjm-tabs__content ul{
  margin: 14px 0 0 18px;
}

.tjm-tabs__content li{
  margin: 6px 0;
}

@media (max-width: 900px){
  .tjm-tabs__tab{
    padding: 14px 12px 12px;
    font-size: 11px;
  }
  .tjm-tabs__panel{ padding: 22px 18px; }
}

@media (max-width: 560px){
  .tjm-tabs__header{
    flex-wrap: wrap;
  }
  .tjm-tabs__tab{
    flex: 1 1 50%;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .tjm-tabs__tab.is-active::after{
    left: 8px;
    right: 8px;
  }
}
