/* Шрифт и поведение ссылок / выделения */
html,
body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* ─── Iris Design System ─────────────────────────────────────────────────── */

/* Gradient utilities */
.iris-gradient-btn {
    background: linear-gradient(135deg, #b77af2 0%, #55acf0 100%);
}
.iris-gradient-text {
    background: linear-gradient(90deg, #b77af2 0%, #55acf0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header scroll states */
.iris-header-transparent {
    background: transparent;
    border-bottom-color: transparent;
}
.iris-header-scrolled,
.iris-header-solid {
    background-color: rgb(255 255 255 / 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(243 244 246);
}

/* Pill tabs (categories, filters) */
.iris-pill-tab {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgb(229, 231, 235);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    background: rgb(255, 255, 255);
    color: rgb(107, 114, 128);
}
button.iris-pill-tab {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}
span.iris-pill-tab {
    white-space: nowrap;
}
.iris-pill-tab.iris-pill-tab-active {
    background: linear-gradient(135deg, rgb(183, 122, 242) 0%, rgb(85, 172, 240) 100%);
    color: rgb(255, 255, 255);
    border-color: transparent;
}

/* Hero mock bar chart */
.iris-hero-mock-chart-row {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    height: 3rem;
}
.iris-demo-mock-chart-row {
    display: flex;
    align-items: flex-end;
    gap: 0.125rem;
    height: 2.5rem;
}
.iris-hero-mock-chart-col {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.iris-hero-mock-chart-row .iris-hero-mock-bar,
.iris-demo-mock-chart-row .iris-hero-mock-bar {
    width: 100%;
    flex-shrink: 0;
    min-height: 2px;
}
/* Mock tab buttons in hero */
.iris-hero-mock-tabs button {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    margin: 0;
    font-family: inherit;
    line-height: 1.25;
}
.iris-bots-categories button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font-family: inherit;
    line-height: inherit;
}
/* Demo mock tabs */
button.iris-demo-mock-tab {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    margin: 0;
    cursor: pointer;
    background: transparent;
    color: rgb(156, 163, 175);
}
button.iris-demo-mock-tab.iris-demo-mock-tab-active {
    background: linear-gradient(135deg, rgb(183, 122, 242), rgb(85, 172, 240));
    color: rgb(255, 255, 255);
    font-weight: 500;
}
button.iris-demo-mock-ui {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    margin: 0;
    font-family: inherit;
    cursor: pointer;
}

/* FAQ accordion cards */
.iris-faq-card {
    border-width: 1px;
    border-style: solid;
    border-color: rgb(243, 244, 246);
    background: rgb(255, 255, 255);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.iris-faq-card.iris-faq-open {
    border-color: rgba(183, 122, 242, 0.19);
    background: rgb(250, 248, 255);
    box-shadow: 0 1px 3px rgba(183, 122, 242, 0.08);
}
.iris-faq-card .iris-faq-q {
    color: rgb(17, 24, 39);
}
.iris-faq-card.iris-faq-open .iris-faq-q {
    color: rgb(183, 122, 242);
}
.iris-faq-card .iris-faq-toggle {
    background: rgb(243, 244, 246);
}
.iris-faq-card.iris-faq-open .iris-faq-toggle {
    background: linear-gradient(135deg, rgb(183, 122, 242) 0%, rgb(85, 172, 240) 100%);
}
.iris-faq-card .iris-faq-toggle i {
    color: rgb(156, 163, 175);
}
.iris-faq-card.iris-faq-open .iris-faq-toggle i {
    color: rgb(255, 255, 255);
}
button.iris-faq-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    margin: 0;
    background: transparent;
    font-family: inherit;
    width: 100%;
}

/* Iris tab buttons (channel detail, analytics) */
.iris-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
    color: rgb(100, 116, 139);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.iris-tab-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: rgb(15, 23, 42);
}
.iris-tab-btn.iris-tab-active {
    background: linear-gradient(135deg, #b77af2 0%, #55acf0 100%);
    color: rgb(255, 255, 255);
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
}

/* Подсветка выделения — фирменный градиент (раньше было transparent, ломало UX
   в полях ввода: при двойном клике и shift-выделении не видно что выделено). */
::selection {
    background: rgba(183, 122, 242, 0.35);
    color: inherit;
}

::-moz-selection {
    background: rgba(183, 122, 242, 0.35);
    color: inherit;
}

/* Blazor error UI */
#blazor-error-ui {
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
}

.product-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    background: #ef4444;
    color: #fff;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.product-error-ui .dismiss {
    position: absolute;
    right: 0.75rem;
    top: 0.35rem;
}

/* Legacy layout: фон как раньше */
.legacy-shell.page {
    min-height: 100vh;
    background: #f4f6f9;
}

.legacy-shell .main-area {
    min-height: 100vh;
}

.legacy-shell #blazor-error-ui {
    background: #b32121;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fff;
}

.legacy-shell #blazor-error-ui .dismiss {
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
