/* hiignitereviews.com — shadcn-token stylesheet
   Tokens mirror ../hiignite.com/index.html (zinc-light + warm orange brand).
   Component classes follow shadcn anatomy in plain CSS. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* surfaces — zinc light */
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    /* brand — orange */
    --primary: #f97316;
    --primary-foreground: #ffffff;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #f97316;
    --radius: 0.625rem;
    /* brand gradient helpers */
    --brand-orange: #f97316;
    --brand-amber: #fb923c;
    --brand-yellow: #fbbf24;
    /* layout */
    --container-max: 1200px;
    --header-h: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* subtle warm gradient backdrop (lifted from hiignite.com, dialed down) */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 10%, rgba(249, 115, 22, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 5%, rgba(251, 146, 60, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
}

/* ---------- container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--foreground);
}
.brand img {
    width: 28px;
    height: 28px;
    display: block;
}
.brand-text {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.brand-sub {
    color: var(--muted-foreground);
    font-weight: 500;
    margin-left: 0.25rem;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* language switcher (native select, styled) */
.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--background)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>")
        no-repeat right 0.5rem center / 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 1.85rem 0.4rem 0.65rem;
    font: inherit;
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.lang-select:hover {
    border-color: #d4d4d8;
}
.lang-select:focus-visible {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}
.btn-primary {
    color: var(--primary-foreground);
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-amber) 50%, var(--brand-yellow) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px -8px rgba(249, 115, 22, 0.55);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 24px -8px rgba(249, 115, 22, 0.7);
}
.btn-ghost {
    color: var(--foreground);
    background: transparent;
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--accent);
}
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ---------- hero ---------- */
.hero {
    padding: clamp(3rem, 8vw, 5.5rem) 0 2.5rem;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    background: var(--secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.025em;
    max-width: 22ch;
    margin: 0 auto 1rem;
}
.highlight {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber) 60%, var(--brand-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--muted-foreground);
    max-width: 56ch;
    margin: 0 auto 2.25rem;
}

/* aggregate rating card */
.agg {
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.agg-score {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber), var(--brand-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.agg-meta {
    text-align: left;
}
.agg-stars {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 0.15rem;
}
.agg-count {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ---------- filter bar ---------- */
.toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
}
.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.chip {
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    transition: all 120ms ease;
}
.chip:hover {
    background: var(--accent);
}
.chip.is-active {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 6px -2px rgba(249, 115, 22, 0.5);
}
.sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.sort-wrap .lang-select {
    color: var(--foreground);
}
.results-summary {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
    flex-basis: 100%;
}

/* ---------- review grid ---------- */
.reviews-section {
    padding-bottom: 4rem;
}
.reviews-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1080px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- card ---------- */
.card {
    background: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.review-card {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.12), 0 2px 6px -2px rgba(249, 115, 22, 0.08);
    border-color: #d4d4d8;
}
.review-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
}
.stars {
    display: inline-flex;
    gap: 2px;
}
.star {
    width: 16px;
    height: 16px;
    display: block;
}
.star-full {
    fill: var(--brand-amber);
}
.star-empty {
    fill: var(--border);
}
.rating-num {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted-foreground);
}
.review-title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.review-body {
    color: #3f3f46;
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}
.review-foot {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
}
.avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber), var(--brand-yellow));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.review-author {
    font-size: 0.9375rem;
    font-weight: 600;
}
.review-sub {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.4;
}
.review-sub-tight {
    margin-top: 0.05rem;
}
.dot {
    opacity: 0.5;
}
.loc {
    min-width: 0;
}

/* ---------- badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.badge-role {
    background: var(--secondary);
}
.badge-verified {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.25);
}
.badge-verified::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.3rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
}
.badge-translated {
    margin-left: auto;
    background: var(--muted);
    color: var(--muted-foreground);
    border-color: var(--border);
    font-weight: 500;
}
.badge-translated::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.3rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/></svg>") center / contain no-repeat;
}

/* ---------- CTA strip ---------- */
.cta-strip {
    margin: 2rem 0 4rem;
    padding: 2.25rem 1.5rem;
    border-radius: calc(var(--radius) + 4px);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(251, 191, 36, 0.05)),
        var(--card);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.cta-strip h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.cta-strip p {
    color: var(--muted-foreground);
    max-width: 52ch;
}

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 3rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}
.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.foot-links a {
    color: var(--foreground);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 120ms ease;
}
.foot-links a:hover {
    border-bottom-color: var(--foreground);
}

/* ---------- 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;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
