/* Custom CSS for LumiaFIT Help Center */

/* Base Styles */
:root {
    --color-primary: #f97316;
    --color-primary-dark: #ea580c;
    --color-primary-light: #fb923c;
    --color-secondary: #6366f1;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --border-radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-gray-800);
}

/* Custom Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Component Styles */
.hero-gradient {
    background: linear-gradient(135deg, #fed7aa 0%, #ffffff 50%, #e0e7ff 100%);
}

.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Search Bar Styles */
.search-input {
    transition: var(--transition);
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    border-color: var(--color-primary);
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

/* Article Cards */
.article-card {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200)) border-box;
}

.article-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb-link {
    position: relative;
    transition: color 0.2s ease;
}

.breadcrumb-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.breadcrumb-link:hover::after {
    width: 100%;
}

/* Table of Contents */
.toc-link {
    position: relative;
    padding-left: 1rem;
    transition: var(--transition);
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-gray-400);
    border-radius: 50%;
    transition: var(--transition);
}

.toc-link:hover::before {
    background: var(--color-primary);
    width: 8px;
}

.toc-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.toc-link.active::before {
    background: var(--color-primary);
    width: 8px;
}

/* Content Blocks */
.content-block {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.content-block.important {
    background: #fef2f2;
    border-color: var(--color-error);
    color: #991b1b;
}

.content-block.tip {
    background: #f0fdf4;
    border-color: var(--color-success);
    color: #14532d;
}

.content-block.note {
    background: #fefce8;
    border-color: var(--color-warning);
    color: #713f12;
}

/* Feedback Buttons */
.feedback-btn {
    position: relative;
    overflow: hidden;
}

.feedback-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.feedback-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .article-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .toc,
    .feedback-section,
    .related-articles,
    .navigation {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.focus-visible:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* Selection */
::selection {
    background: var(--color-primary-light);
    color: white;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid var(--color-gray-700);
    }
    
    .category-card {
        border: 2px solid var(--color-gray-700);
    }
    
    .article-card {
        border: 2px solid var(--color-gray-700);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Article Content Styles */
article.prose p {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

article.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 2.25rem;
}

article.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2rem;
}

article.prose ul,
article.prose ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

article.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

article.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary-light);
}

article.prose a:hover {
    color: var(--color-primary-dark);
    text-decoration-color: var(--color-primary-dark);
}

article.prose strong {
    font-weight: 700;
    color: var(--color-gray-900);
}

article.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-gray-50);
    font-style: italic;
}

/* LumiaFIT Help Center UI 2026 */
:root {
    --brand: #f36b21;
    --brand-dark: #d94f0d;
    --brand-soft: #fff2e9;
    --ink: #171a21;
    --muted: #626a78;
    --surface: #ffffff;
    --surface-soft: #f7f7f5;
    --line: #e7e6e2;
    --shadow-sm: 0 1px 2px rgba(23, 26, 33, .04), 0 8px 28px rgba(23, 26, 33, .05);
    --shadow-lg: 0 24px 70px rgba(75, 45, 24, .13);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; }

body.help-body {
    min-height: 100vh;
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

a, button, input { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(243, 107, 33, .28);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(231, 230, 226, .9);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 560px) minmax(220px, 1fr);
    align-items: center;
    width: min(100% - 40px, 1240px);
    height: 72px;
    margin: 0 auto;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--ink);
    text-decoration: none;
}

.brand__logo { display: block; width: 142px; height: auto; }
.brand__divider { width: 1px; height: 20px; margin: 0 12px; background: var(--line); }
.brand__section { color: var(--muted); font-size: .88rem; font-weight: 600; }

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search > svg {
    position: absolute;
    left: 16px;
    width: 19px;
    height: 19px;
    color: #89909c;
    pointer-events: none;
}

.header-search input {
    width: 100%;
    height: 44px;
    padding: 0 64px 0 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: var(--surface-soft);
    font-size: .92rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.header-search input:focus {
    border-color: rgba(243, 107, 33, .55);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(243, 107, 33, .09);
}

.header-search__hint {
    position: absolute;
    right: 10px;
    padding: 3px 7px;
    border: 1px solid #deddd8;
    border-radius: 6px;
    color: #8a8f98;
    background: #fff;
    font-size: .68rem;
    font-weight: 600;
}

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icon-action { display: none; }

.support-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #ffd9c2;
    border-radius: 11px;
    color: #b64308;
    background: var(--brand-soft);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.support-link:hover { transform: translateY(-1px); border-color: #ffbc93; background: #ffe9da; }
.support-link svg { width: 18px; height: 18px; margin-right: 8px; }

.site-main { min-height: calc(100vh - 72px); }

.help-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 20px 88px;
    border-bottom: 1px solid #f0ede8;
    background:
        radial-gradient(circle at 16% 8%, rgba(255, 193, 148, .24), transparent 30%),
        radial-gradient(circle at 88% 72%, rgba(217, 207, 255, .25), transparent 30%),
        linear-gradient(180deg, #fffdfa 0%, #fbfaf8 100%);
}

.help-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image: radial-gradient(#b7aba2 0.7px, transparent 0.7px);
    background-size: 20px 20px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    pointer-events: none;
}

.help-hero__inner { position: relative; width: min(100%, 850px); margin: 0 auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 7px 11px;
    border: 1px solid #f4d7c5;
    border-radius: 999px;
    color: #a8440f;
    background: rgba(255, 246, 239, .88);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(243,107,33,.12); }

.help-hero h1 {
    max-width: 760px;
    margin: 0 auto 20px;
    color: var(--ink);
    font-size: clamp(2.65rem, 5.4vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.help-hero h1 span { color: var(--brand); }
.help-hero__lead { max-width: 640px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.7; }

.hero-search { position: relative; display: flex; max-width: 680px; margin: 0 auto; padding: 7px; border: 1px solid #e6e0db; border-radius: 17px; background: #fff; box-shadow: var(--shadow-lg); }
.hero-search > svg { position: absolute; top: 50%; left: 23px; width: 22px; height: 22px; transform: translateY(-50%); color: #8b919b; }
.hero-search input { min-width: 0; flex: 1; height: 52px; padding: 0 16px 0 50px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.hero-search button { min-width: 116px; border: 0; border-radius: 11px; color: #fff; background: var(--brand); font-weight: 750; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-search button:hover { background: var(--brand-dark); }

.popular-searches { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; color: #7a808a; font-size: .78rem; }
.popular-searches a { padding: 5px 9px; border-radius: 999px; color: #5d626b; background: rgba(255,255,255,.72); text-decoration: none; }
.popular-searches a:hover { color: var(--brand-dark); background: var(--brand-soft); }

.section-shell { width: min(100% - 40px, 1200px); margin: 0 auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-kicker { display: block; margin-bottom: 8px; color: var(--brand-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(1.9rem, 3vw, 2.55rem); font-weight: 800; letter-spacing: -.04em; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.65; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-link { color: inherit; text-decoration: none; }
.category-tile { position: relative; min-height: 218px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.category-tile:hover { transform: translateY(-4px); border-color: #f2b58f; box-shadow: var(--shadow-sm); }
.category-tile__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.category-tile__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--brand-soft); font-size: 1.5rem; }
.category-tile__arrow { width: 20px; height: 20px; color: #b4b7bd; transition: color .2s ease, transform .2s ease; }
.category-tile:hover .category-tile__arrow { color: var(--brand); transform: translateX(3px); }
.category-tile h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.05rem; font-weight: 750; }
.category-tile p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .86rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.category-tile__count { display: inline-block; margin-top: 16px; color: #8a8f98; font-size: .74rem; font-weight: 650; }

.popular-card { height: 100%; border: 1px solid var(--line) !important; box-shadow: 0 1px 0 rgba(23,26,33,.02); }
.popular-card:hover { transform: translateY(-3px); border-color: #efbc9c !important; box-shadow: var(--shadow-sm) !important; }

.site-footer { color: #dddeda; background: #171917; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; width: min(100% - 40px, 1200px); margin: 0 auto; padding: 64px 0 48px; gap: 80px; }
.brand--footer { color: #fff; }
.brand--footer .brand__logo { width: 180px; }
.site-footer__brand p { max-width: 480px; margin: 22px 0 0; color: #9ca09b; line-height: 1.7; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.site-footer__nav div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__nav h2 { margin: 0 0 8px; color: #fff; font-size: .77rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.site-footer__nav a { color: #aeb1ad; font-size: .88rem; text-decoration: none; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; width: min(100% - 40px, 1200px); margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid #2c2f2c; color: #7f837e; font-size: .76rem; }
.site-footer__bottom p { margin: 0; }

.help-notification {
    position: fixed;
    z-index: 100;
    right: 20px;
    bottom: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    background: #1f7a4d;
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    font-weight: 650;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.help-notification--error { background: #b42318; }
.help-notification.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
    .site-header__inner { grid-template-columns: auto 1fr auto; gap: 18px; }
    .header-search { grid-column: 2; }
    .support-link span { display: none; }
    .support-link { width: 42px; padding: 0; justify-content: center; }
    .support-link svg { margin: 0; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 68px; }
    .site-header__inner { display: flex; width: min(100% - 28px, 1200px); height: 64px; gap: 10px; }
    .brand { margin-right: auto; }
    .brand__logo { width: 124px; }
    .brand__divider, .brand__section, .header-search { display: none; }
    .icon-action { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #555d67; }
    .icon-action svg { width: 19px; height: 19px; }
    .site-main { min-height: calc(100vh - 64px); }
    .help-hero { padding: 60px 16px 64px; }
    .eyebrow { margin-bottom: 18px; }
    .help-hero h1 { font-size: clamp(2.35rem, 12vw, 3.15rem); }
    .help-hero__lead { margin-bottom: 28px; font-size: .98rem; line-height: 1.6; }
    .hero-search { padding: 5px; border-radius: 14px; }
    .hero-search input { height: 49px; padding-left: 44px; font-size: .92rem; }
    .hero-search > svg { left: 18px; width: 20px; height: 20px; }
    .hero-search button { min-width: 86px; padding: 0 14px; }
    .popular-searches > span { width: 100%; }
    .section-shell { width: min(100% - 32px, 1200px); }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading p { margin-top: 12px; }
    .category-grid { grid-template-columns: 1fr; gap: 12px; }
    .category-tile { min-height: 0; padding: 20px; }
    .category-tile__top { margin-bottom: 16px; }
    .site-footer__inner { display: block; width: min(100% - 32px, 1200px); padding: 48px 0 36px; }
    .site-footer__nav { margin-top: 38px; gap: 24px; }
    .site-footer__bottom { display: block; width: min(100% - 32px, 1200px); }
    .site-footer__bottom span { display: block; margin-top: 6px; }
}

/* Keep the experience intentionally light; automatic dark overrides previously
   mixed dark text tokens with Tailwind's fixed white surfaces. */
@media (prefers-color-scheme: dark) {
    body.help-body { background: var(--surface); color: var(--ink); }
}
