/* ═══════════════════════════════════════════════════════
   ATLAS — The Body Academy's AI Engine
   Brand identity for all AI-powered components in TBAfit.

   CSS classes:
     .atlas-badge        — inline badge (icon + "ATLAS" label)
     .atlas-badge-sm     — small variant (16px icon)
     .atlas-badge-lg     — large variant (32px icon, feature sections)
     .atlas-header       — section header with ATLAS attribution
     .atlas-panel        — panel container with ATLAS border treatment
     .atlas-icon         — standalone icon element
     .atlas-powered      — "Powered by ATLAS" attribution line

   Color tokens:
     --atlas-green: #4ade80
     --atlas-dark: #1a1a1e
     --atlas-glow: rgba(74, 222, 128, 0.12)
═══════════════════════════════════════════════════════ */

:root {
    --atlas-green: #4ade80;
    --atlas-green-dim: #2a8a4a;
    --atlas-dark: #1a1a1e;
    --atlas-glow: rgba(74, 222, 128, 0.12);
    --atlas-glow-strong: rgba(74, 222, 128, 0.20);
    --atlas-border: rgba(74, 222, 128, 0.25);
}

/* ── ATLAS SVG Icon (inline, scalable) ── */
.atlas-icon-svg {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Inline badge: icon + "ATLAS" label ── */
.atlas-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 9px 3px 6px;
    border-radius: 100px;
    background: linear-gradient(135deg, #0f2018 0%, #1a1a1e 100%);
    border: 1px solid var(--atlas-border);
    color: var(--atlas-green);
    white-space: nowrap;
    line-height: 1;
}

.atlas-badge .atlas-icon-svg {
    width: 14px;
    height: 14px;
}

/* ── Small badge variant ── */
.atlas-badge-sm {
    font-size: 0.55rem;
    padding: 2px 7px 2px 5px;
    gap: 4px;
}

.atlas-badge-sm .atlas-icon-svg {
    width: 11px;
    height: 11px;
}

/* ── Large badge variant (feature sections) ── */
.atlas-badge-lg {
    font-size: 0.72rem;
    padding: 5px 12px 5px 9px;
    gap: 7px;
}

.atlas-badge-lg .atlas-icon-svg {
    width: 20px;
    height: 20px;
}

/* ── Section header with ATLAS attribution ── */
.atlas-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.atlas-header .atlas-badge {
    margin-left: 2px;
}

/* ── Panel container with ATLAS border treatment ── */
.atlas-panel {
    border: 1px solid var(--atlas-border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.04) 0%, transparent 60%);
    position: relative;
}

.atlas-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--atlas-green) 50%, transparent 100%);
    opacity: 0.4;
    border-radius: 12px 12px 0 0;
}

/* ── "Powered by ATLAS" attribution line ── */
.atlas-powered {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(74, 222, 128, 0.55);
    opacity: 0.8;
}

.atlas-powered .atlas-icon-svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* ── ATLAS feature icon (64px, for feature sections) ── */
.atlas-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f2018 0%, #1a2520 100%);
    border: 1px solid var(--atlas-border);
    flex-shrink: 0;
}

.atlas-feature-icon .atlas-icon-svg {
    width: 32px;
    height: 32px;
}

/* ── "ATLAS" wordmark typography ── */
.atlas-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--atlas-green);
    font-variant: small-caps;
}

/* ── ATLAS reasoning label (replaces "Why this exercise?") ── */
.atlas-reasoning-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--atlas-green);
    opacity: 0.8;
}
