/**
 * ===================================================================
 * SF Highlighter (Gemini Style) - CSS
 * ===================================================================
 *
 * sf-highlighter-gemini.js가 생성한 HTML 구조에 스타일을 적용합니다.
 *
 * @file       assets/css/sf-highlighter-gemini.css
 * @package    sf-lecture-one
 * @version    1.1.3
 */

/* ===================================================================
   1. 최상위 컨테이너
   =================================================================== */
.sf-highlighter-gemini-container {
    background-color: #272822;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* ===================================================================
   2. 코드 블록 헤더
   =================================================================== */
.sf-hg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3a3a3c;
    padding: 0.75em 1em;
    color: #e0e0e0;
}

/* ===================================================================
   3. 헤더 - 왼쪽 (언어 정보)
   =================================================================== */
.sf-hg-info {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
}

.sf-hg-icon.material-symbols-outlined {
    font-size: 20px;
    color: #9e9e9e;
    font-weight: normal;
}

.sf-hg-language {
    color: #fff;
}

/* ===================================================================
   4. 헤더 - 오른쪽 (컨트롤 버튼)
   =================================================================== */
.sf-hg-controls {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.sf-hg-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4em;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: #e0e0e0;
}

.sf-hg-button .material-symbols-outlined {
    font-size: 20px;
    transition: color 0.2s, transform 0.2s;
}

.sf-hg-button:hover,
.sf-hg-button:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
    color: #fff;
}

/* ===================================================================
   5. 코드 블록 (<pre> 태그)
   =================================================================== */
.sf-hg-codeblock {
    margin: 0 !important;
    padding: 1em !important;
    overflow: auto !important;
    color: #f8f8f2;
	font-family: 'D2Coding', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 0.95em;
	line-height: 1.6;
    white-space: pre;
    transition: all 0.3s ease-in-out;
}

.sf-hg-codeblock > code {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: inherit;
    background: none;
    color: inherit;
}

/* ===================================================================
   6. 접기/펼치기 기능 스타일
   =================================================================== */
.sf-hg-btn-toggle .material-symbols-outlined {
    transition: transform 0.3s ease-in-out;
}
.sf-hg-btn-toggle.collapsed .material-symbols-outlined {
    transform: rotate(180deg);
}

.sf-hg-codeblock.collapsed {
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #3a3a3c;
}

/* ===================================================================
   7. 복사 완료 상태 스타일
   =================================================================== */
.sf-hg-btn-copy.copied {
    color: #a6e22e;
}

.sf-hg-btn-copy.copied .material-symbols-outlined {
    display: none;
}
.sf-hg-btn-copy.copied::before {
    content: 'done';
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* ===================================================================
   8. 코드 토큰 스타일링 (10가지 공통 그룹)
   =================================================================== */
.sf-hg-codeblock .token.comment { color: #8292a2; }
.sf-hg-codeblock .token.string { color: #a6e22e; }
.sf-hg-codeblock .token.keyword { color: #66d9ef; }
.sf-hg-codeblock .token.function { color: #e6db74; }
.sf-hg-codeblock .token.number,
.sf-hg-codeblock .token.boolean { color: #ae81ff; }
.sf-hg-codeblock .token.className { color: #78dce8; }
.sf-hg-codeblock .token.operator,
.sf-hg-codeblock .token.punctuation { color: #f8f8f2; }
.sf-hg-codeblock .token.property { color: #fd971f; }
.sf-hg-codeblock .token.tag { color: #f92672; }