/* Docs Page Specific Styles */

/* Main Layout */
.docs-main {
    display: flex;
    position: relative;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

/* Sidebar Toggle Button - Hidden on Desktop */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    left: 280px;
    transform: translateY(-50%);
    z-index: 999;
    width: 35px;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 0 8px 8px 0;
    border-left: none;
    color: var(--primary-color);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, color 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 2px 0 15px rgba(0, 153, 34, 0.3);
}

/* 사이드바가 숨겨졌을 때 토글 버튼 위치 */
.sidebar-toggle.sidebar-hidden {
    left: 0;
}

/* Sidebar - Always visible on desktop */
.docs-sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 280px;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.2s ease;
    z-index: 998;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

/* Hidden state only for mobile/tablet */
.docs-sidebar.hidden {
    transform: translateX(-280px);
}

/* Ensure sidebar doesn't cover footer - add padding to bottom */
.docs-sidebar .sidebar-content {
    padding-bottom: 3rem;
}

.sidebar-content {
    padding: 4rem 2rem 4rem 2rem;
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Sidebar Navigation */
.sidebar-nav {
    display: block;
    margin: 0;
    padding: 0;
}

.nav-section {
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.nav-section-title {
    display: block;
    margin: 0;
    padding: 0.9rem 0 0.9rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.nav-section-title span {
    display: inline;
}

.nav-section-title:hover {
    background: rgba(0, 153, 34, 0.08);
    color: var(--primary-color);
}

.nav-section-title.active {
    background: rgba(0, 153, 34, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1rem - 3px);
}

.nav-subsection {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: none;
}

.nav-subsection.always-visible {
    display: block;
}

.nav-section-title.active + .nav-subsection {
    display: block;
}

.nav-subsection li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-subsection a {
    display: block;
    margin: 0;
    padding: 0.6rem 0 0.6rem 1rem;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: left;
}

.nav-subsection a:hover {
    background: rgba(0, 153, 34, 0.05);
    color: var(--primary-color);
}

.nav-subsection a.active {
    background: rgba(0, 153, 34, 0.1);
    color: var(--primary-color);
    font-weight: 400;
    border-left: 2px solid var(--primary-color);
    padding-left: calc(1rem - 2px);
}

/* Main Content Area */
.docs-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem 6rem 3rem 6rem;
    max-width: 1400px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-sidebar.hidden + .docs-content {
    margin-left: 0;
}

/* Section Styles */
.doc-section {
    margin-bottom: 5rem;
    scroll-margin-top: 100px;
}

.section-main-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
    letter-spacing: -0.02em;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-intro {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
}

/* Quote Emphasis Styles */
.quote-emphasis {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    font-style: normal;
    color: #6366f1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quote-emphasis .comma {
    font-style: italic;
    font-size: 1.8rem;
}

.quote-author {
    font-size: 1.1rem;
    font-weight: 600;
}

.doc-subsection {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.doc-subsection h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
}

.doc-subsection h3 {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 400;
}

.doc-subsection h4 {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 0.8rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 400;
}

.doc-subsection p {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
}

.doc-subsection ul,
.doc-subsection ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.doc-subsection li {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(0, 153, 34, 0.05) 0%, rgba(0, 204, 51, 0.03) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h3 i {
    font-size: 1.2rem;
}

.info-box p {
    margin-bottom: 0;
}

/* Code Box */
.code-box {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.code-box pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-box code {
    color: rgba(0, 0, 0, 0.85);
    font-family: 'Fira Code', monospace;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 153, 34, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 153, 34, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Step List */
.step-list {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 153, 34, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 153, 34, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.step-content p {
    margin-bottom: 0.8rem;
}

.btn-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.arch-layer {
    background: linear-gradient(135deg, rgba(0, 153, 34, 0.08) 0%, rgba(0, 204, 51, 0.05) 100%);
    border: 1px solid rgba(0, 153, 34, 0.2);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.arch-layer:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 153, 34, 0.15);
}

.arch-layer h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.arch-layer p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background: linear-gradient(135deg, rgba(0, 153, 34, 0.05) 0%, rgba(0, 204, 51, 0.03) 100%);
    border: 1px solid rgba(0, 153, 34, 0.15);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 153, 34, 0.2);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 400;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 153, 34, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 153, 34, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    margin-bottom: 0;
}

/* Distribution Chart */
.distribution-chart {
    margin: 2rem 0;
}

.distribution-item {
    margin-bottom: 1.5rem;
}

.dist-bar {
    height: 45px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    width: var(--width);
    transition: all 0.3s ease;
    position: relative;
}

.dist-bar:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 153, 34, 0.3);
}

.dist-percent {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.dist-label {
    color: rgba(0, 0, 0, 0.75);
    font-size: 1rem;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 400;
}

/* Staking Info */
.staking-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.staking-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 153, 34, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.staking-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 153, 34, 0.15);
}

.staking-card h4 {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.staking-value {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
}

/* API List */
.api-list {
    margin: 2rem 0;
}

.api-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 153, 34, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.api-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 153, 34, 0.1);
}

.api-method {
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.api-item code {
    flex: 1;
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    font-size: 1rem;
}

.api-item p {
    flex: 1;
    margin: 0;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
}

/* Security Features */
.security-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 153, 34, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.security-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 153, 34, 0.15);
}

.security-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.security-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.security-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Scrollbar Styling */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 997;
    box-shadow: 0 4px 15px rgba(0, 153, 34, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 153, 34, 0.4);
}

/* Copy Code Button */
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-code-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Code IDE Block Styles */
.code-ide-block {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 153, 34, 0.2);
    box-shadow: 0 4px 20px rgba(0, 153, 34, 0.1);
    background: #1e1e1e;
}

.code-ide-header {
    background: #2d2d2d;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-ide-tabs {
    display: flex;
    gap: 0.5rem;
}

.code-ide-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 4px 4px 0 0;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-ide-tab.active {
    background: #1e1e1e;
    color: #ffffff;
}

.code-ide-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

.code-ide-actions {
    display: flex;
    gap: 0.5rem;
}

.code-ide-copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.code-ide-copy:hover {
    background: rgba(0, 153, 34, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.code-ide-body {
    display: flex;
    background: #1e1e1e;
    overflow-x: auto;
}

/* Tab content item wrapper */
.code-content-item {
    display: flex !important;
    width: 100%;
    min-height: 100%;
    flex-direction: row;
}

.code-content-item[style*="display: none"] {
    display: none !important;
}

.code-ide-line-numbers {
    padding: 1.5rem 0;
    background: #252525;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    user-select: none;
    min-width: 50px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.code-ide-line-numbers span {
    display: block;
    padding: 0 1rem;
}

.code-ide-content {
    flex: 1;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-ide-content pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.code-ide-content code {
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
}

/* Code Syntax Highlighting */
.code-keyword {
    color: #569cd6;
    font-weight: 500;
}

.code-string {
    color: #ce9178;
}

.code-comment {
    color: #6a9955;
    font-style: italic;
}

.code-function {
    color: #dcdcaa;
}

.code-constant {
    color: #4fc1ff;
}

/* ====================================================================
   Matrix Diagram Sections (타겟 지갑 매트릭스 & Bloom Filter)
   ==================================================================== */

.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.grid-left,
.grid-right {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.grid-left:hover,
.grid-right:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 153, 34, 0.1);
    transform: translateY(-2px);
}

.grid-left h3,
.grid-right h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 153, 34, 0.2);
}

.grid-left .code-box {
    margin-top: 1rem;
    background: #1e1e1e !important;
    border: 1px solid rgba(0, 153, 34, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grid-left .code-box pre,
.grid-left .code-box code {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
}

.grid-right p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #333;
}

.grid-right p strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ====================================================================
   Responsive Design for Matrix Sections
   ==================================================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    .doc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-left,
    .grid-right {
        padding: 1.5rem;
    }
    
    .grid-left h3,
    .grid-right h3 {
        font-size: 1.2rem;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .doc-grid {
        margin-top: 20px;
        margin-bottom: 20px;
        gap: 15px;
    }
    
    .grid-left,
    .grid-right {
        padding: 1.2rem;
        border-radius: 8px;
    }
    
    .grid-left h3,
    .grid-right h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .grid-right p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* 코드박스 스크롤 개선 */
    .grid-left .code-box {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .grid-left .code-box pre {
        font-size: 0.75rem;
        white-space: pre;
    }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .grid-left,
    .grid-right {
        padding: 1rem;
    }
    
    .grid-left h3,
    .grid-right h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .grid-right p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

.code-number {
    color: #b5cea8;
}

.code-class {
    color: #4ec9b0;
}
