﻿/**
 * Tenbit Addon - Section Heading Widget Styles
 * Author: Team Tenbit (https://tenbitsol.com)
 * Version: 1.0.0
 */

/* Import Hunters Element brand fonts if not already loaded by theme */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --tb-color-blaze: #ff5500;
  --tb-color-blaze-hover: #e04a00;
  --tb-color-blaze-glow: rgba(255, 85, 0, 0.28);
  --tb-color-obsidian: #0d0f0e;
  --tb-color-stone-100: #fbfbfa;
  --tb-color-stone-200: #f4f3ee;
  --tb-color-stone-400: #d0cdc1;
  --tb-color-stone-500: #939185;
  --tb-color-stone-900: #191917;
  --tb-color-white: #ffffff;
  --tb-font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --tb-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --tb-font-mono: 'JetBrains Mono', monospace;
  --tb-border-subtle: rgba(255, 255, 255, 0.12);
}

/* Base Wrapper */
.tenbit-section-heading-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Row Layout Container */
.tenbit-section-heading-row {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.3s ease;
}

/* --- Layout Presets --- */
/* Preset: Split 2-Column (Default as in Hunters Element) */
.tenbit-layout-split .tenbit-section-heading-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.tenbit-layout-split .tenbit-head-col-primary {
  flex: 1 1 55%;
  min-width: 0;
}

.tenbit-layout-split .tenbit-head-col-secondary {
  flex: 0 1 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

/* Preset: Stacked Left */
.tenbit-layout-stacked_left .tenbit-section-heading-row {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}

.tenbit-layout-stacked_left .tenbit-head-col-primary,
.tenbit-layout-stacked_left .tenbit-head-col-secondary {
  width: 100%;
}

/* Preset: Stacked Center */
.tenbit-layout-stacked_center .tenbit-section-heading-row {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.tenbit-layout-stacked_center .tenbit-head-col-primary,
.tenbit-layout-stacked_center .tenbit-head-col-secondary {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Preset: Stacked Right */
.tenbit-layout-stacked_right .tenbit-section-heading-row {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 20px;
}

.tenbit-layout-stacked_right .tenbit-head-col-primary,
.tenbit-layout-stacked_right .tenbit-head-col-secondary {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* --- Eyebrow / Subtitle Styles --- */
.tenbit-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tb-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--tb-color-blaze);
  margin-bottom: 12px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.tenbit-eyebrow-style-blaze {
  color: var(--tb-color-blaze);
}

.tenbit-eyebrow-style-neutral {
  color: var(--tb-color-stone-500);
}

.tenbit-eyebrow-style-badge {
  background-color: rgba(255, 85, 0, 0.15);
  color: var(--tb-color-blaze);
  border: 1px solid rgba(255, 85, 0, 0.35);
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.1em;
}

.tenbit-eyebrow-style-badge-neutral {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--tb-color-stone-200);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.1em;
}

.tenbit-eyebrow-icon {
  display: inline-flex;
  font-size: 0.9em;
}

/* --- Title Styles --- */
.tenbit-section-title {
  font-family: var(--tb-font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--tb-color-white);
  margin: 0;
  padding: 0;
  transition: color 0.25s ease;
}

.tenbit-section-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.tenbit-section-title a:hover {
  opacity: 0.85;
}

/* --- Description Styles --- */
.tenbit-section-desc {
  font-family: var(--tb-font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tb-color-stone-400);
  max-width: 460px;
  margin: 0 0 16px 0;
  transition: color 0.25s ease;
}

.tenbit-section-desc:last-child {
  margin-bottom: 0;
}

/* --- Button Styles --- */
.tenbit-section-btn-wrap {
  display: inline-flex;
  margin-top: 8px;
}

.tenbit-section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--tb-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenbit-btn-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.tenbit-section-btn:hover .tenbit-btn-icon-after {
  transform: translateX(3px);
}

.tenbit-section-btn:hover .tenbit-btn-icon-before {
  transform: translateX(-3px);
}

/* Button Presets */
.tenbit-btn-preset-blaze {
  background-color: var(--tb-color-blaze);
  color: var(--tb-color-white);
  border-color: var(--tb-color-blaze);
}

.tenbit-btn-preset-blaze:hover {
  background-color: var(--tb-color-blaze-hover);
  border-color: var(--tb-color-blaze-hover);
  color: var(--tb-color-white);
  box-shadow: 0 0 25px var(--tb-color-blaze-glow);
  transform: translateY(-2px);
}

.tenbit-btn-preset-dark {
  background-color: var(--tb-color-obsidian);
  color: var(--tb-color-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.tenbit-btn-preset-dark:hover {
  background-color: #222724;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.tenbit-btn-preset-light {
  background-color: var(--tb-color-white);
  color: var(--tb-color-obsidian);
  border-color: var(--tb-color-white);
}

.tenbit-btn-preset-light:hover {
  background-color: var(--tb-color-stone-200);
  border-color: var(--tb-color-stone-200);
  transform: translateY(-2px);
}

.tenbit-btn-preset-outline-white {
  background-color: transparent;
  color: var(--tb-color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.tenbit-btn-preset-outline-white:hover {
  border-color: var(--tb-color-white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--tb-color-white);
  transform: translateY(-2px);
}

.tenbit-btn-preset-outline-dark {
  background-color: transparent;
  color: var(--tb-color-obsidian);
  border-color: rgba(0, 0, 0, 0.25);
}

.tenbit-btn-preset-outline-dark:hover {
  border-color: var(--tb-color-obsidian);
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--tb-color-obsidian);
  transform: translateY(-2px);
}

/* --- Responsive Adaptations --- */
@media (max-width: 991px) {
  .tenbit-layout-split .tenbit-section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .tenbit-layout-split .tenbit-head-col-primary,
  .tenbit-layout-split .tenbit-head-col-secondary {
    flex: 1 1 100%;
    width: 100%;
  }

  .tenbit-layout-split.tenbit-reverse-mobile .tenbit-section-heading-row {
    flex-direction: column-reverse;
  }
}

@media (max-width: 576px) {
  .tenbit-section-title {
    font-size: 2.2rem;
  }

  .tenbit-section-desc {
    font-size: 0.95rem;
  }

  .tenbit-section-btn {
    width: 100%;
  }
}
