/* Кастомные стили для SKU Search Documentation */

/* ---------- Общая типографика ---------- */
.content p,
.content li {
    line-height: 1.7;
}

.content h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--table-border-color);
}

.content h3 {
    margin-top: 2rem;
    color: var(--fg);
}

.content h4 {
    margin-top: 1.5rem;
    opacity: 0.9;
}

/* ---------- Блоки endpoint ---------- */
.endpoint {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-left: 5px solid var(--links);
    border-bottom: 1px solid var(--table-border-color);
    padding: 1rem 0 1rem 1.25rem;
    margin: 1.5rem 0;
    font-family: var(--mono-font);
    font-size: 1.8rem;
}

.method {
    font-family: var(--mono-font);
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    color: #fff;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.method.post { background: #10b981; }
.method.get  { background: #3b82f6; }
.method.delete { background: #ef4444; }

.endpoint-path {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

/* ---------- Блоки note / tip / warning ---------- */
.note, .tip, .warning {
    border-radius: 6px;
    padding: 1rem 1rem 1rem 3.5rem;
    margin: 1rem 0;
    position: relative;
    border: 1px solid var(--table-border-color);
    background: transparent;
}

.note::before, .tip::before, .warning::before {
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    font-family: "FontAwesome";
    font-weight: normal;
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
    line-height: 1;
}

.note {
    border-left: 3px solid #3b82f6;
}
.note::before { content: "\f05a"; color: #3b82f6; }

.tip {
    border-left: 3px solid #10b981;
}
.tip::before { content: "\f00c"; color: #10b981; }

.warning {
    border-left: 3px solid #f59e0b;
}
.warning::before { content: "\f071"; color: #f59e0b; }

/* ---------- Блоки параметров ---------- */
.param-card {
    border-left: 3px solid var(--links);
    border-bottom: 1px solid var(--table-border-color);
    padding: 1.1rem 1rem 1.1rem 1.25rem;
    margin: 1.25rem 0;
}

.param-card .warning,
.param-card .tip,
.param-card .note {
    margin: 1rem 0;
}

.param-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
}

.param-name {
    font-family: var(--mono-font);
    font-weight: bold;
    color: var(--links);
    font-size: 1.95rem;
}

.param-type {
    font-family: var(--mono-font);
    font-size: 1.35rem;
    color: var(--fg);
    opacity: 0.9;
}

.param-default {
    font-family: var(--mono-font);
    font-size: 1.3rem;
    color: var(--fg);
    opacity: 0.95;
}

.param-default::before {
    content: "default: ";
    opacity: 0.7;
}

.param-desc p:last-child {
    margin-bottom: 0;
}

/* ---------- Блоки кода ---------- */
.code-block {
    background: var(--table-alternate-bg);
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
}

.code-block pre {
    margin: 0;
    background: transparent;
}

.code-block pre code {
    background: transparent;
    padding: 0;
}

/* ---------- Списки возможностей, сценариев, шагов, уровней ---------- */
.feature-card,
.scenario-card,
.steps-card,
.levels-card {
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.feature-list,
.scenario-list,
.steps-list,
.levels-list {
    margin: 0;
    padding-left: 1.5rem;
}

.feature-list li,
.scenario-list li,
.steps-list li,
.levels-list li {
    padding: 0.5rem 0;
    line-height: 1.7;
}

.feature-list li::marker {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

.scenario-list li::marker,
.steps-list li::marker,
.levels-list li::marker {
    color: var(--links);
    font-weight: bold;
}

/* ---------- Таблицы ---------- */
.score-table, .bench-table, .fields-table,
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    overflow: hidden;
}

.score-table th, .bench-table th, .fields-table th,
.content table th {
    background: var(--table-alternate-bg);
    color: var(--fg);
    text-align: left;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    border-bottom: 2px solid var(--table-border-color);
}

.score-table td, .bench-table td, .fields-table td,
.content table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--table-border-color);
}

.content table tr:nth-child(even) {
    background: var(--table-alternate-bg);
}

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

/* ---------- Шаги / уровни (flow-step) ---------- */
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.flow-step > div:first-child {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--links);
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.flow-step > div:last-child {
    flex: 1;
    line-height: 1.7;
}

/* ---------- Прочие улучшения ---------- */
.content ul li {
    margin: 0.3rem 0;
}

.content code {
    font-family: var(--mono-font);
    font-size: 0.95em;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--fg);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.content pre code,
.content pre code span {
    padding: 0;
    background: transparent;
    color: inherit;
    font-weight: normal;
    border: none;
}

.content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
