/* ═══════════════════════════════════════════
   Sabkekar — Code Block (Frontend)
   ═══════════════════════════════════════════ */

.skk-code-block {
    margin: 22px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    direction: ltr;
    text-align: left;
}

.skk-code-block__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #262626;
}

.skk-code-block__dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.skk-code-block__dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.skk-code-block__dots span:nth-child(1) { background: #ff5f56; }
.skk-code-block__dots span:nth-child(2) { background: #ffbd2e; }
.skk-code-block__dots span:nth-child(3) { background: #27c93f; }

.skk-code-block__filename {
    color: #ccc;
    font-size: 12.5px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.skk-code-block__lang {
    margin-inline-start: auto;
    color: #3bbfb0;
    font-size: 11px;
    font-weight: 700;
    background: rgba(59,191,176,.15);
    padding: 3px 11px;
    border-radius: 99px;
    white-space: nowrap;
}

.skk-code-block__copy {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #ddd;
    font-family: inherit;
    font-size: 12px;
    border-radius: 6px;
    padding: 5px 11px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    flex-shrink: 0;
}

.skk-code-block__copy:hover {
    background: rgba(255,255,255,.16);
}

.skk-code-block__copy.is-copied {
    background: #3bbfb0;
    border-color: #3bbfb0;
    color: #fff;
}

.skk-code-block__copy i {
    font-size: 14px;
}

/* ── override ظاهر Prism.js برای هماهنگی با کادر بالا ── */
.skk-code-block__pre {
    margin: 0 !important;
    border-radius: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.8 !important;
    max-height: 520px;
}

.skk-code-block__pre code {
    font-family: 'Consolas', 'Monaco', monospace !important;
    background: transparent !important;
    padding: 0 !important;
    display: inline !important;
    border-radius: 0 !important;
}

@media (max-width: 480px) {
    .skk-code-block__filename { display: none; }
    .skk-code-block__copy span { display: none; }
    .skk-code-block__pre { font-size: 12.5px !important; }
}
