/* ==========================================================================
   utils.css — CSP-safe utility classes
   Replaces common inline style="" attributes across public/ HTML files.
   Part of Backlog 096 (style-src 'unsafe-inline' removal).
   ========================================================================== */

/* --- Colors --- */
.u-color-green        { color: #00ff88; }
.u-color-orange       { color: #ff9800; }
.u-color-orange-alt   { color: #ff9500; }
.u-color-orange-alt2  { color: #ff9900; }
.u-color-accent       { color: var(--color-accent); }
.u-color-zekt-green   { color: var(--zekt-green); }
.u-color-muted        { color: #b0b0b0; }
.u-color-muted-dark   { color: #909090; }
.u-color-text         { color: #c9d1d9; }

/* --- Display --- */
.u-hidden             { display: none; }
.u-block              { display: block; }
.u-inline-flex        { display: inline-flex; }

/* --- Flexbox --- */
.u-flex               { display: flex; }
.u-flex-center        { display: flex; align-items: center; }
.u-flex-center-gap-6  { display: flex; align-items: center; gap: 6px; }
.u-flex-center-gap-8  { display: flex; align-items: center; gap: 8px; }
.u-flex-center-gap-10 { display: flex; align-items: center; gap: 10px; }
.u-flex-center-gap-16 { display: flex; align-items: center; gap: 16px; }
.u-flex-between       { display: flex; justify-content: space-between; align-items: center; }
.u-flex-col           { display: flex; flex-direction: column; }
.u-flex-wrap          { flex-wrap: wrap; }
.u-flex-justify-center { display: flex; justify-content: center; }
.u-flex-justify-center-gap-16 { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.u-align-self-center  { align-self: center; }
.u-ml-auto            { margin-left: auto; }

/* --- Spacing --- */
.u-m-0                { margin: 0; }
.u-mt-0               { margin-top: 0; }
.u-mt-16              { margin-top: 16px; }
.u-mb-0               { margin-bottom: 0; }
.u-mb-4               { margin-bottom: 4px; }
.u-mb-8               { margin-bottom: 8px; }
.u-mb-12              { margin-bottom: 12px; }
.u-mb-16              { margin-bottom: 16px; }
.u-mb-20              { margin-bottom: 20px; }
.u-m-0-0-8           { margin: 0 0 8px 0; }
.u-m-0-0-12          { margin: 0 0 12px 0; }

/* --- Typography --- */
.u-text-center        { text-align: center; }
.u-text-no-decoration { text-decoration: none; }
.u-fw-500             { font-weight: 500; }
.u-fw-600             { font-weight: 600; }
.u-fw-bold            { font-weight: bold; }
.u-fs-13              { font-size: 13px; }
.u-fs-14              { font-size: 14px; }
.u-fs-16              { font-size: 16px; }
.u-fs-18              { font-size: 18px; }
.u-fs-2rem            { font-size: 2rem; }
.u-lh-1-6            { line-height: 1.6; }

/* --- Borders --- */
.u-border-left-green  { border-left: 3px solid #00ff88; }
.u-border-top-orange  { border-top: 3px solid #ff9800; }

/* --- Common combined patterns --- */
.u-link-green,
.u-link-green:visited {
    color: #00ff88;
    text-decoration: none;
}
.u-link-green-500,
.u-link-green-500:visited {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
}
.u-link-green-600,
.u-link-green-600:visited {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
}
.u-link-accent,
.u-link-accent:visited {
    color: var(--color-accent);
    text-decoration: none;
}
.u-link-orange,
.u-link-orange:visited {
    color: #ff9800;
    text-decoration: none;
}
.u-orange-bold {
    color: #ff9800;
    font-weight: bold;
}
.u-muted-text {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}
.u-subtitle {
    margin-bottom: 16px;
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.6;
}
.u-caption {
    margin-top: 16px;
    font-size: 13px;
    color: #909090;
}
.u-section-heading {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #c9d1d9;
}
.u-block-label {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

/* --- Icon sizing --- */
.u-icon-24 {
    width: 24px;
    height: 24px;
    filter: brightness(1.2);
}
.u-icon-48 {
    width: 48px;
    height: 48px;
    filter: brightness(1.5);
}
.u-icon-80 {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Emoji / decorative --- */
.u-emoji-2rem {
    font-size: 2rem;
}
.u-emoji-2rem-green {
    font-size: 2rem;
    color: var(--zekt-green);
}

/* --- Additional patterns (Wave 2 expansion) --- */
.u-icon-24-bright {
    width: 24px;
    height: 24px;
    filter: brightness(1.2);
}
.u-icon-48-bright {
    width: 48px;
    height: 48px;
    filter: brightness(1.5);
}
.u-icon-80-box {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.u-btn-outline {
    padding: 10px 20px;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}
.u-badge-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #00ff88;
}
.u-card-gradient {
    padding: 24px;
    background: linear-gradient(135deg, #0f0f0f 0%, #000000 100%);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
}
.u-link-muted,
.u-link-muted:visited {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.u-section-heading-full {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #c9d1d9;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
}
.u-tab-btn {
    text-align: center;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.u-btn-outline-orange {
    background: transparent;
    border: 2px solid #ff9800;
    color: #ff9800;
}
.u-border-orange-active {
    border-color: #ff9800;
    color: #ff9800;
}
.u-img-40 {
    height: 40px;
    width: auto;
}
.u-orange-600 {
    color: #ff9800;
    font-weight: 600;
}
.u-color-secondary {
    color: var(--color-text-secondary);
}
.u-block-mt-8-muted {
    display: block;
    margin-top: 8px;
    color: #666;
}
.u-flex-center-gap-16-mb-12 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* --- Phase 2 batch C-1 through C-3 additions --- */
.u-fs-3rem              { font-size: 3rem; }
.u-fs-20                { font-size: 20px; }
.u-color-red            { color: #ff4444; }
.u-mb-5                 { margin-bottom: 5px; }

.u-link-green-underline,
.u-link-green-underline:visited {
    color: #00ff88;
    text-decoration: underline;
    transition: opacity 0.2s;
}
.u-link-green-underline-bold,
.u-link-green-underline-bold:visited {
    color: #00ff88;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s;
}
.u-link-orange-bold-transition,
.u-link-orange-bold-transition:visited {
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.u-section-nav-link,
.u-section-nav-link:visited {
    padding: 10px 20px;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.875rem;
}
.u-section-nav-link-green,
.u-section-nav-link-green:visited {
    padding: 10px 20px;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #00ff88;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}
.u-section-label-caps {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #c9d1d9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.u-legal-main {
    padding-top: 40px;
    min-height: calc(100vh - 200px);
}
.u-header-centered-3rem {
    text-align: center;
    margin-bottom: 3rem;
}
.u-h1-large {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.u-cta-section {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid #21262d;
    background: #0d1117;
}
.u-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

/* --- Phase 2 batch C-4 through C-7 additions --- */

/* Nav link */
.u-nav-link,
.u-nav-link:visited {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

/* Badge pills */
.u-badge-pill-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.u-badge-pill-orange {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.4);
    color: #ff9800;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Featured badge (inline, not positioned) */
.u-badge-featured-orange {
    background: transparent;
    border: 2px solid #ff9800;
    color: #ff9800;
    z-index: 10;
}
.u-badge-featured-green {
    background: transparent;
    border: 2px solid #00ff88;
    color: #00ff88;
    z-index: 10;
}

/* Icon box (float layout) */
.u-icon-box-green {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #00ff88;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

/* Dark panel */
.u-dark-panel {
    padding: 24px;
    background: linear-gradient(135deg, #0f0f0f 0%, #000000 100%);
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: auto;
}

/* Card corner badge (absolute positioned) */
.u-card-badge-orange {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 2px solid #ff9800;
    color: #ff9800;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.u-card-badge-orange-alt {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 2px solid #ff9900;
    color: #ff9900;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.u-card-badge-green {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 2px solid #00ff88;
    color: #00ff88;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.u-card-badge-blue {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 2px solid #448aff;
    color: #448aff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.u-card-badge-purple {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 2px solid #b388ff;
    color: #b388ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card relative position with border color */
.u-card-rel-orange  { position: relative; border-color: rgba(255, 152, 0, 0.3); }
.u-card-rel-orange-alt { position: relative; border-color: rgba(255, 153, 0, 0.3); }
.u-card-rel-purple  { position: relative; border-color: rgba(179, 136, 255, 0.3); }
.u-pos-relative     { position: relative; }

/* Colors */
.u-color-purple     { color: #b388ff; }
.u-color-dark       { color: #0a0a0a; }
.u-color-white      { color: #fff; }
.u-color-green-bold { color: #00e676; font-weight: bold; }
.u-link-green-trans,
.u-link-green-trans:visited {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.u-link-zekt-green,
.u-link-zekt-green:visited {
    color: var(--zekt-green);
    text-decoration: none;
}
.u-link-orange-alt-ptr,
.u-link-orange-alt-ptr:visited {
    color: #ff9500;
    text-decoration: none;
    cursor: pointer;
}
.u-border-purple-active      { border-color: #b388ff; color: #b388ff; }
.u-border-orange-alt2-active { border-color: #ff9900; color: #ff9900; }

/* Section title green */
.u-section-title-green { color: #00ff88; text-align: left; margin-bottom: 40px; }
.u-card-title-orange   { color: #ff9900; padding-right: 0; }

/* Service icons */
.u-service-icon-orange {
    color: #000;
    background: linear-gradient(135deg, #ff9800 0%, rgba(255, 152, 0, 0.8) 100%);
}
.u-service-icon-orange-alt {
    color: #000;
    background: linear-gradient(135deg, #ff9900 0%, rgba(255, 153, 0, 0.8) 100%);
}
.u-service-icon-purple {
    color: #000;
    background: linear-gradient(135deg, #b388ff 0%, rgba(179, 136, 255, 0.8) 100%);
}

/* Gradient text */
.u-gradient-text-green {
    background: linear-gradient(135deg, #00ff88 0%, #00dd88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
}
.u-gradient-text-orange {
    background: linear-gradient(135deg, #ff9800 0%, #ff7700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 152, 0, 0.3));
}
.u-gradient-text-orange-alt {
    background: linear-gradient(135deg, #ff9900 0%, #e67e00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 153, 0, 0.3));
}

/* Code / pre */
.u-code-text {
    -webkit-text-fill-color: inherit;
    background: none;
    color: #e6edf3;
    font-family: 'JetBrains Mono', monospace;
}
.u-pre-dark {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Flex utilities */
.u-flex-center-gap-24     { display: flex; align-items: center; gap: 24px; }
.u-flex-center-gap-10-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.u-flex-wrap-ctr-gap-16-mt-28 {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.u-flex-col-gap-20  { display: flex; flex-direction: column; gap: 20px; }
.u-flex-wrap-gap-16-mt-20 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    align-items: center;
}
.u-btn-primary-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00ff88;
    color: #0a0a0a;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

/* Grid */
.u-grid-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.u-grid-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Image */
.u-img-responsive { max-width: 100%; height: auto; display: inline-block; }

/* Margin / text */
.u-list-tight       { margin: 12px 0 8px 20px; line-height: 2; }
.u-list-indent-8    { margin: 0 0 8px 0; padding-left: 16px; }
.u-text-center-mt-32  { text-align: center; margin-top: 32px; }
.u-text-center-mt-40  { text-align: center; margin-top: 40px; }
.u-text-center-mb-40  { text-align: center; margin-bottom: 40px; }
.u-text-center-gray-sm { text-align: center; color: #888888; font-size: 13px; margin-top: 16px; }
.u-mt-16-xs         { margin-top: 16px; font-size: 0.875rem; }
.u-caption-italic   { margin-top: 8px; font-size: 0.75rem; color: #888; font-style: italic; }

/* Material icon inline */
.u-material-icon-orange-alt { font-size: 1.25rem; vertical-align: middle; margin-right: 6px; color: #ff9500; }
.u-material-icon-orange     { font-size: 1.25rem; vertical-align: middle; margin-right: 6px; color: #ff9800; }
.u-fs-48            { font-size: 48px; }
.u-logo-orange      { font-size: 20px; font-weight: 700; color: #ff9800; letter-spacing: -0.5px; }
.u-logo-zekt-green  { font-size: 48px; font-weight: 700; color: #00ff88; }
.u-green-label      { font-size: 13px; font-weight: 600; color: #00ff88; margin: 0 0 12px 0; }
.u-caption-dim      { font-size: 12px; color: #909090; margin: 10px 0 0 0; text-align: center; }
.u-text-body-muted  { font-size: 15px; color: #b0b0b0; margin-top: 16px; line-height: 1.7; }
.u-text-body-light  { font-size: 1rem; color: #e0e0e0; line-height: 1.7; margin: 0; }
.u-text-body-light-mt { font-size: 1rem; color: #e0e0e0; line-height: 1.7; margin: 16px 0 0 0; }
.u-text-body-lg-light { font-size: 1.125rem; color: #e0e0e0; line-height: 1.7; margin: 0; }
.u-text-muted-16    { color: #b0b0b0; font-size: 16px; margin: 0; }
.u-text-muted-14-500 { color: #b0b0b0; font-size: 14px; font-weight: 500; }
.u-text-dim-sm-mb   { color: #909090; font-size: 0.875rem; margin-bottom: 16px; }
.u-text-dim-xs-mt   { color: #909090; font-size: 0.8125rem; margin-top: 10px; margin-bottom: 0; }

/* Structural */
.u-header-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-bottom: 1px solid #333333;
    padding: 12px 0;
}
.u-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.u-cta-top-border {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid #21262d;
}
.u-section-plain {
    padding: 40px 0;
    background: none;
    border: none;
    text-align: left;
}
