/* 코드 블록 기본 스타일 */
pre {
    position: relative !important;
    background: #f5f5f5 !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;
    margin: 1.5em 0 !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

pre code {
    display: block !important;
    padding: 1rem !important;
    overflow-x: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #333 !important;
}

/* 라이트 모드 스타일 */
html:not([data-theme=&quot;dark&quot;]) pre {
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
}

html:not([data-theme=&quot;dark&quot;]) pre code {
    color: #333 !important;
}

/* 다크 모드 스타일 */
html[data-theme=&quot;dark&quot;] pre,
[data-theme=&quot;dark&quot;] pre {
    background: #1e1e1e !important;
    border-color: #404040 !important;
}

html[data-theme=&quot;dark&quot;] pre code,
[data-theme=&quot;dark&quot;] pre code {
    color: #d4d4d4 !important;
}

/* 복사 버튼 스타일 */
.code-copy-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 10 !important;
    font-family: inherit !important;
}

pre:hover .code-copy-btn {
    opacity: 1 !important;
}

.code-copy-btn:hover {
    background: rgba(0,0,0,0.9) !important;
}

.code-copy-btn.copied {
    background: #28a745 !important;
}

html[data-theme=&quot;dark&quot;] .code-copy-btn,
[data-theme=&quot;dark&quot;] .code-copy-btn {
    background: rgba(255,255,255,0.2) !important;
}

html[data-theme=&quot;dark&quot;] .code-copy-btn:hover,
[data-theme=&quot;dark&quot;] .code-copy-btn:hover {
    background: rgba(255,255,255,0.3) !important;
}

/* Prism.js 토큰 색상 - 라이트 모드 */
html:not([data-theme=&quot;dark&quot;]) .token.comment,
html:not([data-theme=&quot;dark&quot;]) .token.prolog,
html:not([data-theme=&quot;dark&quot;]) .token.doctype,
html:not([data-theme=&quot;dark&quot;]) .token.cdata {
    color: #6a737d !important;
}

html:not([data-theme=&quot;dark&quot;]) .token.punctuation {
    color: #6f42c1 !important;
}

html:not([data-theme=&quot;dark&quot;]) .token.property,
html:not([data-theme=&quot;dark&quot;]) .token.tag,
html:not([data-theme=&quot;dark&quot;]) .token.constant,
html:not([data-theme=&quot;dark&quot;]) .token.symbol,
html:not([data-theme=&quot;dark&quot;]) .token.deleted {
    color: #d73a49 !important;
}

html:not([data-theme=&quot;dark&quot;]) .token.boolean,
html:not([data-theme=&quot;dark&quot;]) .token.number {
    color: #005cc5 !important;
}

html:not([data-theme=&quot;dark&quot;]) .token.selector,
html:not([data-theme=&quot;dark&quot;]) .token.attr-name,
html:not([data-theme=&quot;dark&quot;]) .token.string,
html:not([data-theme=&quot;dark&quot;]) .token.char,
html:not([data-theme=&quot;dark&quot;]) .token.builtin,
html:not([data-theme=&quot;dark&quot;]) .token.inserted {
    color: #032f62 !important;
}

html:not([data-theme=&quot;dark&quot;]) .token.operator,
html:not([data-theme=&quot;dark&quot;]) .token.entity,
html:not([data-theme=&quot;dark&quot;]) .token.url {
    color: #6f42c1 !important;
}

html:not([data-theme=&quot;dark&quot;]) .token.atrule,
html:not([data-theme=&quot;dark&quot;]) .token.attr-value,
html:not([data-theme=&quot;dark&quot;]) .token.keyword {
    color: #d73a49 !important;
}

html:not([data-theme=&quot;dark&quot;]) .token.function,
html:not([data-theme=&quot;dark&quot;]) .token.class-name {
    color: #6f42c1 !important;
}

/* Prism.js 토큰 색상 - 다크 모드 */
html[data-theme=&quot;dark&quot;] .token.comment,
html[data-theme=&quot;dark&quot;] .token.prolog,
html[data-theme=&quot;dark&quot;] .token.doctype,
html[data-theme=&quot;dark&quot;] .token.cdata,
[data-theme=&quot;dark&quot;] .token.comment,
[data-theme=&quot;dark&quot;] .token.prolog,
[data-theme=&quot;dark&quot;] .token.doctype,
[data-theme=&quot;dark&quot;] .token.cdata {
    color: #6a9955 !important;
}

html[data-theme=&quot;dark&quot;] .token.punctuation,
[data-theme=&quot;dark&quot;] .token.punctuation {
    color: #d4d4d4 !important;
}

html[data-theme=&quot;dark&quot;] .token.property,
html[data-theme=&quot;dark&quot;] .token.tag,
html[data-theme=&quot;dark&quot;] .token.constant,
html[data-theme=&quot;dark&quot;] .token.symbol,
html[data-theme=&quot;dark&quot;] .token.deleted,
[data-theme=&quot;dark&quot;] .token.property,
[data-theme=&quot;dark&quot;] .token.tag,
[data-theme=&quot;dark&quot;] .token.constant,
[data-theme=&quot;dark&quot;] .token.symbol,
[data-theme=&quot;dark&quot;] .token.deleted {
    color: #f92672 !important;
}

html[data-theme=&quot;dark&quot;] .token.boolean,
html[data-theme=&quot;dark&quot;] .token.number,
[data-theme=&quot;dark&quot;] .token.boolean,
[data-theme=&quot;dark&quot;] .token.number {
    color: #ae81ff !important;
}

html[data-theme=&quot;dark&quot;] .token.selector,
html[data-theme=&quot;dark&quot;] .token.attr-name,
html[data-theme=&quot;dark&quot;] .token.string,
html[data-theme=&quot;dark&quot;] .token.char,
html[data-theme=&quot;dark&quot;] .token.builtin,
html[data-theme=&quot;dark&quot;] .token.inserted,
[data-theme=&quot;dark&quot;] .token.selector,
[data-theme=&quot;dark&quot;] .token.attr-name,
[data-theme=&quot;dark&quot;] .token.string,
[data-theme=&quot;dark&quot;] .token.char,
[data-theme=&quot;dark&quot;] .token.builtin,
[data-theme=&quot;dark&quot;] .token.inserted {
    color: #a6e22e !important;
}

html[data-theme=&quot;dark&quot;] .token.operator,
html[data-theme=&quot;dark&quot;] .token.entity,
html[data-theme=&quot;dark&quot;] .token.url,
[data-theme=&quot;dark&quot;] .token.operator,
[data-theme=&quot;dark&quot;] .token.entity,
[data-theme=&quot;dark&quot;] .token.url {
    color: #f8f8f2 !important;
}

html[data-theme=&quot;dark&quot;] .token.atrule,
html[data-theme=&quot;dark&quot;] .token.attr-value,
html[data-theme=&quot;dark&quot;] .token.keyword,
[data-theme=&quot;dark&quot;] .token.atrule,
[data-theme=&quot;dark&quot;] .token.attr-value,
[data-theme=&quot;dark&quot;] .token.keyword {
    color: #66d9ef !important;
}

html[data-theme=&quot;dark&quot;] .token.function,
html[data-theme=&quot;dark&quot;] .token.class-name,
[data-theme=&quot;dark&quot;] .token.function,
[data-theme=&quot;dark&quot;] .token.class-name {
    color: #fd971f !important;
}

/* 스크롤바 스타일 */
pre code::-webkit-scrollbar {
    height: 8px !important;
}

pre code::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
}

pre code::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3) !important;
    border-radius: 4px !important;
}

html[data-theme=&quot;dark&quot;] pre code::-webkit-scrollbar-track,
[data-theme=&quot;dark&quot;] pre code::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1) !important;
}

html[data-theme=&quot;dark&quot;] pre code::-webkit-scrollbar-thumb,
[data-theme=&quot;dark&quot;] pre code::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3) !important;
}
code[class*=language-], pre[class*=language-]{
    text-shadow: none !important;
}
  
  /*이미지 설정*/
.post-body.entry-content img{
    width :100%;
}

/*다크모드 에러*/
.language-css .token.string, .style .token.string, .token.entity, .token.operator, .token.url{
	background: none !important;
}
/* 모바일 반응형 */
@media (max-width: 768px) {
    pre {
        font-size: 12px !important;
        margin: 1em 0 !important;
    }
    
    pre code {
        padding: 0.75rem !important;
    }
    
    .code-copy-btn {
        top: 4px !important;
        right: 4px !important;
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}
