/**************************************/
/**************** Root ****************/
/**************************************/
:root {
  --documentation: white;
  --navbar: white;
  --smartive-primary: #e84061;
  --smartive-secondary: #f18552;
  --smartive-ink: #0f172a;
  --smartive-muted: #64748b;
  --smartive-line: #e8ecf1;
  --smartive-gradient: linear-gradient(135deg, #e84061, #f18552);
}

body,
.documentation,
.sidebar,
nav,
button,
input {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

::selection {
  background: rgba(241, 133, 82, .25);
}

body {
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/**************************************/
/*************** Sidebar **************/
/**************************************/
.sidebar {
  background: #fbfcfd;
  border: none;
  border-right: 1px solid var(--smartive-line);
}

.subtitle{
    cursor: auto;
}

.sidebar ul li h2 {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    margin-top: 14px;
    padding: 10px 10px 4px;
    text-transform: uppercase;
}

.sidebar h2:hover {
    cursor: pointer;
}

.sidebar h3 {
    margin-bottom: 5px;
    margin-top: 5px;
}

.sidebar ul li ul li a {
    border-radius: 8px;
    color: #475569;
    display: block;
    margin: 1px 10px 1px 6px;
    padding: 7px 12px;
    transition: background .15s ease, color .15s ease;
}

.sidebar ul li ul li a:hover {
    background: #f1f5f9;
    color: var(--smartive-ink);
    text-decoration: none;
}

.sidebar ul li ul li a.active {
    background: linear-gradient(90deg, rgba(232, 64, 97, .10), rgba(241, 133, 82, .10));
    color: var(--smartive-primary);
    font-weight: 700;
}

/**************************************/
/*************** Navbar ***************/
/**************************************/
nav.bg-navbar {
    border-bottom: 1px solid var(--smartive-line);
}

/**************************************/
/************ Tartalom ****************/
/**************************************/
.documentation h1 {
    border-left: 4px solid var(--smartive-primary);
    color: var(--smartive-ink);
    font-weight: 800;
    letter-spacing: -.02em;
    padding-left: 16px;
}

.documentation h2,
.documentation h3 {
    color: var(--smartive-ink);
    font-weight: 800;
    letter-spacing: -.01em;
}

.documentation p {
    line-height: 1.75;
}

.documentation a {
    color: var(--smartive-primary);
}

.documentation hr {
    border: none;
    border-top: 1px solid var(--smartive-line);
}

img.no-zoom {
    pointer-events: none;
    cursor: default;
}

.smartive-version-selector .button {
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0;
}

.smartive-doc-hero {
    align-items: center;
    background:
        radial-gradient(1200px 400px at 110% -20%, rgba(241, 133, 82, .10), transparent 60%),
        radial-gradient(900px 350px at -10% 120%, rgba(232, 64, 97, .07), transparent 55%),
        #f8fafc;
    border: 1px solid var(--smartive-line);
    border-radius: 14px;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    margin: 22px 0;
    padding: 26px;
}

.smartive-doc-hero,
.smartive-page-lead,
.smartive-card-grid,
.smartive-spec-grid,
.smartive-warning,
.smartive-danger,
.smartive-success,
.smartive-note,
.smartive-checklist,
.smartive-step-list,
.smartive-table,
.smartive-figure {
    clear: both;
}

.smartive-page-lead {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.65;
    margin: 12px 0 20px;
    max-width: 920px;
}

.smartive-doc-hero img,
.smartive-doc-image {
    border-radius: 8px;
    max-width: 100%;
}

.smartive-product-image {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-width: 320px;
    width: 320px;
}

.smartive-doc-hero img.smartive-product-image {
    max-width: 320px;
    width: 320px;
}

.smartive-pill {
    background: var(--smartive-gradient);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(232, 64, 97, .30);
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 10px;
    padding: 5px 12px;
}

.smartive-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 18px 0;
}

.smartive-info-card {
    background: #fff;
    border: 1px solid var(--smartive-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    cursor: pointer;
    padding: 16px 18px;
    position: relative;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.smartive-info-card:hover {
    border-color: #fbc4b8;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .09);
    transform: translateY(-2px);
}

.smartive-info-card strong {
    color: #111827;
    display: block;
    margin-bottom: 6px;
}

.smartive-info-card a {
    color: #111827;
    text-decoration: none;
}

.smartive-info-card a::after {
    content: "";
    inset: 0;
    position: absolute;
}

.smartive-info-card:hover a,
.smartive-info-card a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.smartive-info-card p {
    margin: 0;
}

.smartive-spec-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 18px 0;
}

.smartive-spec-item {
    background: #fff;
    border: 1px solid var(--smartive-line);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    padding: 14px 16px 14px 20px;
    position: relative;
}

.smartive-spec-item::before {
    background: var(--smartive-gradient);
    border-radius: 10px 0 0 10px;
    bottom: -1px;
    content: "";
    left: -1px;
    position: absolute;
    top: -1px;
    width: 5px;
}

.smartive-spec-label {
    color: #6b7280;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.smartive-spec-value {
    color: #111827;
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.smartive-warning,
.smartive-danger,
.smartive-success,
.smartive-note {
    border-radius: 12px;
    margin: 18px 0;
    padding: 16px 18px 16px 52px;
    position: relative;
}

.smartive-warning::before,
.smartive-danger::before,
.smartive-success::before,
.smartive-note::before {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    left: 17px;
    position: absolute;
    top: 16px;
    width: 22px;
}

.smartive-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
}

.smartive-warning::before {
    background: #f59e0b;
    content: "!";
}

.smartive-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

.smartive-danger::before {
    background: #ef4444;
    content: "\26A0";
    font-size: 12px;
}

.smartive-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #064e3b;
}

.smartive-success::before {
    background: #10b981;
    content: "\2713";
}

.smartive-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.smartive-note::before {
    background: #3b82f6;
    content: "i";
    font-style: italic;
}

/* A LaRecipe az oldal első ul-jét fixált jobb oldali TOC-ként kezelte. Ezt lecseréljük:
   a tartalom teljes szélességű, a TOC pedig lebegő, hoverre kinyíló widget (lásd .smartive-toc). */
.documentation {
    padding-right: 4.5rem;
    width: 100%;
}

/* A markdown-ban kézzel írt TOC-listák (#section linkek) elrejtése – a lebegő TOC veszi át a szerepüket */
.documentation > ul:first-of-type:has(> li > a[href*="#section-"]) {
    display: none;
}

/* A nem-TOC tartalmi listák ne örököljék a LaRecipe fixált TOC stílusát */
.documentation > ul:first-of-type:not(.smartive-checklist):not(:has(> li > a[href*="#section-"])) {
    list-style: disc;
    padding-left: 1.5rem;
    position: static;
    top: auto;
    right: auto;
    width: 100%;
}

.documentation > ul:first-of-type:not(.smartive-checklist):not(:has(> li > a[href*="#section-"])) li {
    border: none;
    line-height: 1.75;
    padding: 0;
}

/**************************************/
/***** Lebegő tartalomjegyzék *********/
/**************************************/
.smartive-toc {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
}

.smartive-toc-dashes {
    align-items: flex-end;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 8px;
}

.smartive-toc-dashes span {
    background: #cbd5e1;
    border-radius: 999px;
    display: block;
    height: 3px;
    transition: background .15s ease, width .15s ease;
    width: 16px;
}

.smartive-toc-dashes span.active {
    background: var(--smartive-primary);
    width: 24px;
}

.smartive-toc-panel {
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .30);
    max-height: 70vh;
    opacity: 0;
    overflow-y: auto;
    padding: 10px 8px;
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    visibility: hidden;
    width: 260px;
}

.smartive-toc:hover .smartive-toc-panel,
.smartive-toc:focus-within .smartive-toc-panel {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

.smartive-toc-panel a {
    border-radius: 8px;
    color: #cbd5e1;
    display: block;
    font-size: 13.5px;
    line-height: 1.45;
    padding: 8px 12px;
    text-decoration: none;
    transition: background .12s ease, color .12s ease;
}

.smartive-toc-panel a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.smartive-toc-panel a.active {
    background: rgba(232, 64, 97, .22);
    color: #fff;
    font-weight: 600;
}

.smartive-toc-panel .smartive-toc-title {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 6px 12px 8px;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .smartive-toc {
        display: none;
    }

    .documentation {
        padding-right: 0;
    }
}

/* A LaRecipe az oldal első ul-jét fixált TOC-ként kezeli – a saját listáinkra ez ne vonatkozzon */
.documentation ul.smartive-checklist,
.documentation .smartive-checklist {
    background: transparent;
    border: none;
    display: grid;
    gap: 10px;
    left: auto;
    list-style: none;
    margin: 18px 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    position: static !important;
    right: auto;
    top: auto;
    width: 100% !important;
}

.documentation ul.smartive-checklist li,
.smartive-checklist li {
    background: #fff;
    border: 1px solid var(--smartive-line);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    color: #374151;
    line-height: 1.6;
    padding: 12px 14px 12px 42px;
    position: relative;
}

.smartive-checklist li::before {
    align-items: center;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
    color: #166534;
    content: "\2713";
    display: flex;
    font-size: 13px;
    font-weight: 800;
    height: 20px;
    justify-content: center;
    left: 14px;
    position: absolute;
    top: 13px;
    width: 20px;
}

.smartive-step-list {
    counter-reset: smartive-step;
    display: grid;
    gap: 14px;
    margin: 20px 0;
}

.smartive-step {
    background: #fff;
    border: 1px solid var(--smartive-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px 18px;
}

.smartive-step::before {
    align-items: center;
    background: var(--smartive-gradient);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(232, 64, 97, .28);
    color: #fff;
    content: counter(smartive-step);
    counter-increment: smartive-step;
    display: flex;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    margin-top: 2px;
    width: 32px;
}

.smartive-step h3,
.smartive-step h4 {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 6px;
}

.smartive-step p,
.smartive-step ul {
    margin-bottom: 0;
}

.smartive-table {
    border: 1px solid var(--smartive-line);
    border-collapse: separate;
    border-radius: 12px;
    border-spacing: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    margin: 18px 0;
    /* Nincs overflow: hidden, hogy a tooltipek kilóghassanak – a sarkokat cellánként kerekítjük */
    width: 100%;
}

.smartive-table tr:first-child th:first-child,
.smartive-table tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.smartive-table tr:first-child th:last-child,
.smartive-table tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.smartive-table tr:last-child th:first-child,
.smartive-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.smartive-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.smartive-table th,
.smartive-table td {
    border: none;
    border-bottom: 1px solid #eef1f5;
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}

.smartive-table tr:last-child td {
    border-bottom: none;
}

.smartive-table tr:nth-child(even) td {
    background: #fafbfc;
}

.smartive-table th {
    background: #f4f6f8;
    color: var(--smartive-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.smartive-figure {
    margin: 22px 0;
    text-align: center;
}

.smartive-figure img {
    border: 1px solid var(--smartive-line);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
    max-width: 100%;
}

.smartive-figure-caption {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

/**************************************/
/******** Magyarázó tooltipek *********/
/**************************************/
.smartive-term {
    border-bottom: 1px dashed #2563eb;
    color: #1d4ed8;
    cursor: help;
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.smartive-term::after {
    background: #111827;
    border-radius: 8px;
    bottom: calc(100% + 10px);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .22);
    color: #f9fafb;
    content: attr(data-tip);
    font-size: 13px;
    font-weight: 400;
    left: 50%;
    line-height: 1.55;
    opacity: 0;
    padding: 10px 13px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translateX(-50%) translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
    visibility: hidden;
    white-space: normal;
    width: 290px;
    z-index: 50;
}

.smartive-term::before {
    border: 6px solid transparent;
    border-top-color: #111827;
    bottom: calc(100% - 2px);
    content: "";
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .15s ease;
    visibility: hidden;
    z-index: 50;
}

.smartive-term:hover::after,
.smartive-term:hover::before,
.smartive-term:focus::after,
.smartive-term:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

/* A táblázat/hero szélén lévő tooltip ne lógjon ki az oldalból */
.smartive-term.smartive-term--left::after {
    left: 0;
    transform: translateX(0) translateY(4px);
}

.smartive-term.smartive-term--left:hover::after,
.smartive-term.smartive-term--left:focus::after {
    transform: translateX(0) translateY(0);
}

/**************************************/
/*********** FAQ / lenyílók ***********/
/**************************************/
details.smartive-faq {
    background: #fff;
    border: 1px solid var(--smartive-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    margin: 10px 0;
    padding: 0;
}

details.smartive-faq summary {
    color: #111827;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    padding: 15px 44px 15px 18px;
    position: relative;
    user-select: none;
}

details.smartive-faq summary::-webkit-details-marker {
    display: none;
}

details.smartive-faq summary::after {
    color: #6b7280;
    content: "+";
    font-size: 20px;
    font-weight: 400;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

details.smartive-faq[open] {
    border-color: #bfdbfe;
    box-shadow: 0 1px 6px rgba(37, 99, 235, .08);
}

details.smartive-faq[open] summary::after {
    content: "\2013";
}

details.smartive-faq .smartive-faq-body {
    border-top: 1px solid #f3f4f6;
    color: #374151;
    padding: 14px 18px 16px;
}

details.smartive-faq .smartive-faq-body p:last-child {
    margin-bottom: 0;
}

/**************************************/
/*********** Egyéb elemek *************/
/**************************************/
.smartive-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    white-space: nowrap;
}

.smartive-badge--green {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.smartive-badge--red {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.smartive-compare-note {
    color: #6b7280;
    font-size: 14px;
    margin-top: -10px;
}

@media (min-width: 1500px) {
    .smartive-doc-hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    }
}

@media (max-width: 640px) {
    .smartive-doc-hero,
    .smartive-step {
        padding: 16px;
    }

    .smartive-table th,
    .smartive-table td {
        overflow-wrap: anywhere;
        padding: 8px 10px;
    }

    .smartive-step {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .smartive-step::before {
        height: 28px;
        width: 28px;
    }
}
