/* harrasteblog-code-copy – brändivärit: #d6111e #ddc76d #000 #fff */

/* --hbcc-red:  #d6111e   pääväri – topbar-tausta, reunaviiva  */
/* --hbcc-gold: #ddc76d   kultainen – kielinimi, hover, korostus */
/* --hbcc-bg:   #000       koodialue – musta                     */
/* --hbcc-text: #ffffff    perusteksti koodissa                   */

.hbcc-wrapper {
    position: relative;
    margin: 1.5em 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #d6111e;
    background: #000000;
    font-size: 0.9em;
}

.hbcc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    background: #d6111e;
    border-bottom: 2px solid #d6111e;
    min-height: 36px;
}

.hbcc-lang {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #ddc76d;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    font-weight: 600;
}

.hbcc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    padding: 3px 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1.6;
}

.hbcc-copy-btn:hover {
    background: rgba(0,0,0,0.25);
    border-color: #ddc76d;
    color: #ddc76d;
}

.hbcc-copy-btn.hbcc-copied {
    border-color: #ddc76d;
    color: #ddc76d;
    background: rgba(0,0,0,0.3);
}

.hbcc-copy-btn.hbcc-error {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(0,0,0,0.3);
}

.hbcc-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

/* pre / code sisällä wrapperissa */
.hbcc-wrapper pre {
    margin: 0 !important;
    padding: 16px !important;
    background: transparent !important;
    border: none !important;
    overflow-x: auto;
    border-radius: 0 !important;
}

.hbcc-wrapper pre code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.75;
    color: #ffffff;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    display: block;
    white-space: pre;
}

/* Scrollbar – tumma tyyli punaisella thumbilla */
.hbcc-wrapper pre::-webkit-scrollbar {
    height: 6px;
}
.hbcc-wrapper pre::-webkit-scrollbar-track {
    background: #111111;
}
.hbcc-wrapper pre::-webkit-scrollbar-thumb {
    background: #d6111e;
    border-radius: 3px;
}

/* Syntaksikorostus – brändiväreillä */
/* Prism.js token -luokat */
.hbcc-wrapper .token.comment    { color: #888888; }          /* harmaa kommenteille   */
.hbcc-wrapper .token.keyword    { color: #d6111e; }          /* punainen avainsanat   */
.hbcc-wrapper .token.string     { color: #ddc76d; }          /* kulta merkkijonot     */
.hbcc-wrapper .token.function   { color: #ddc76d; }          /* kulta funktiot        */
.hbcc-wrapper .token.number     { color: #ffffff; }          /* valkoinen numerot     */
.hbcc-wrapper .token.operator   { color: #d6111e; }          /* punainen operaattorit */
.hbcc-wrapper .token.variable   { color: #ffffff; }          /* valkoinen muuttujat   */
.hbcc-wrapper .token.class-name { color: #ddc76d; }          /* kulta luokanimet      */
.hbcc-wrapper .token.tag        { color: #d6111e; }          /* punainen HTML-tagit   */
.hbcc-wrapper .token.attr-name  { color: #ddc76d; }          /* kulta attribuutit     */
.hbcc-wrapper .token.attr-value { color: #ffffff; }          /* valkoinen arvo        */
.hbcc-wrapper .token.punctuation { color: #999999; }         /* harmaa välimerkit     */
.hbcc-wrapper .token.boolean    { color: #d6111e; }          /* punainen true/false   */
.hbcc-wrapper .token.builtin    { color: #ddc76d; }          /* kulta sisäänrakennetut */