/* Documentation Page Styles */

/* Prevent horizontal overflow on mobile */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans CJK KR', 'Noto Sans CJK SC', 'Noto Sans CJK JP', 'Malgun Gothic', 'Microsoft YaHei', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* Language-specific font optimizations for docs page */
body[lang="ko"],
body[lang="ko"] * {
    font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Segoe UI', sans-serif;
}

body[lang="zh"],
body[lang="zh"] * {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Segoe UI', sans-serif;
}

body[lang="ja"],
body[lang="ja"] * {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'Segoe UI', sans-serif;
}

body[lang="es"],
body[lang="es"] * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body[lang="en"],
body[lang="en"] * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.section-content img,
.section-content svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Documentation Hero */
.docs-hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.docs-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.docs-title {
    font-size: clamp(2.5rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-subtitle {
    font-size: clamp(1rem, 2vw, 1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Documentation Content Layout */
.docs-content {
    padding: 4rem 2rem;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
}

.docs-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    position: relative;
}

/* Documentation Sidebar */
.docs-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    z-index: 10;
    will-change: transform;
    transition: box-shadow 0.3s ease;
}

.docs-sidebar.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.1);
}

/* Ensure sticky works on desktop/PC */
@media (min-width: 969px) {
    .docs-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
    }
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

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

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #00ff8f;
}

.docs-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.nav-section-title:first-child {
    margin-top: 0;
}

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

.docs-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.docs-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.docs-nav-link.active {
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 500;
}

.docs-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: var(--accent);
    border-radius: 2px;
}

/* Main Documentation Content */
.docs-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    min-height: 150vh;
}

.docs-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 100%;
    overflow-x: hidden;
}

.section-content p {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

/* Info Cards */
.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Requirement Cards */
.requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.requirement-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.requirement-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.req-list {
    list-style: none;
    padding: 0;
}

.req-list li {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Warning Card */
.warning-card {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-card p {
    color: var(--text-primary);
    margin: 0;
}

.warning-card strong {
    color: #ffc107;
}

/* Step Cards */
.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    gap: 2rem;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: wrap;
}

.arch-component {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.component-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-component h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.arch-component p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.arch-arrow {
    font-size: 2rem;
    color: var(--accent);
    font-weight: bold;
}

/* Code Block */
.code-block {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #f8f8f2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-block code {
    color: #f8f8f2;
}

/* Process List */
.process-list {
    margin-top: 2rem;
}

.process-list h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-list ol {
    padding-left: 1.5rem;
}

.process-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Rewards Grid */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.reward-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.reward-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.1);
}

.reward-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.reward-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.reward-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Token Stats */
.token-stats {
    margin: 2rem 0;
}

.token-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.token-chart {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.chart-segment {
    height: 100%;
    transition: var(--transition);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.token-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.staking-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.staking-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.staking-card ul {
    list-style: none;
    padding: 0;
}

.staking-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.staking-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

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

@media (max-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.process-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.1);
}

.process-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.125rem;
}

.process-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.process-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #2d2d2d;
    border-bottom: 1px solid var(--border-color);
}

.code-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.code-lang {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #d4d4d4;
}

.code-block .keyword {
    color: #569cd6;
}

.code-block .type {
    color: #4ec9b0;
}

.code-block .function {
    color: #dcdcaa;
}

.code-block .number {
    color: #b5cea8;
}

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

/* Performance Metrics Bento Grid */
.metrics-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.metric-card-large {
    grid-column: span 2;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.1);
}

.metric-card-small {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.metric-card-small:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.metric-icon {
    flex-shrink: 0;
}

.metric-data {
    flex: 1;
}

.metric-data h3 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.metric-value-large {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-value-small {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

.metric-unit {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.metric-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00ff8f);
    transition: width 1s ease;
}

.metric-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.metric-card-small h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-card-small p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
}

/* Architecture Layers */
.architecture-layers {
    margin-top: 4rem;
}

.layers-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .layers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.layer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.layer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.layer-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.15);
}

.layer-card:hover::before {
    opacity: 1;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.layer-number {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.layer-header h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
}

.layer-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-tags-layer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag-small {
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Performance Chart */
.performance-chart {
    margin-top: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 100%;
    overflow-x: auto;
}

.performance-chart h4 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
}

.chart-bar-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    min-width: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.chart-bar {
    flex: 1;
    height: 40px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transition: all 0.5s ease;
}

.chart-bar span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bg-primary);
    white-space: nowrap;
}

.chart-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.05);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 969px) {
    .metrics-bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .metric-card-large {
        grid-column: span 1;
    }
    
    .docs-container {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }
    
    .docs-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 90px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .docs-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .docs-nav {
        max-height: 400px;
        overflow-y: auto;
    }

    .architecture-diagram {
        flex-direction: column;
        padding: 1rem;
    }
    
    .arch-component {
        min-width: 100px;
        max-width: 100%;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }
    
    .metrics-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card-large {
        flex-direction: column;
        text-align: center;
    }
    
    .performance-chart {
        padding: 1.5rem;
    }
    
    .chart-container {
        gap: 1rem;
    }
    
    .chart-bar {
        height: 32px;
        padding: 0 0.75rem;
    }
    
    .chart-label {
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    .layers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-hero {
        padding: 3rem 1rem;
    }
    
    .docs-hero-container {
        padding: 0 0.5rem;
    }

    .docs-content {
        padding: 2rem 1rem;
        overflow-x: hidden;
    }
    
    .docs-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .docs-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
    }

    .docs-main {
        padding: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .docs-section {
        padding: 1rem 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section-content {
        padding: 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .step-card,
    .requirement-card,
    .reward-card,
    .staking-card,
    .layer-card,
    .process-card {
        max-width: 100%;
        overflow-x: hidden;
    }

    .requirement-grid,
    .rewards-grid,
    .staking-info {
        grid-template-columns: 1fr;
    }
    
    .metrics-bento-grid,
    .process-grid,
    .layers-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .architecture-diagram {
        flex-direction: column;
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .performance-chart {
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .chart-bar-group {
        flex-wrap: wrap;
    }

    .token-chart {
        height: 30px;
    }

    .reward-value {
        font-size: 2rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .docs-hero {
        padding: 2rem 0.5rem;
    }
    
    .docs-content {
        padding: 1rem 0.5rem;
    }
    
    .docs-main {
        padding: 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .architecture-diagram,
    .performance-chart,
    .layer-card,
    .process-card {
        padding: 0.75rem;
    }
    
    .chart-label {
        min-width: 60px;
        font-size: 0.7rem;
    }
    
    .chart-bar {
        font-size: 0.7rem;
    }
    
    .component-icon {
        width: 60px;
        height: 60px;
    }
    
    .arch-component {
        min-width: 80px;
    }
}
