/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Global text wrapping for all elements */
* {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --code-bg: #1e293b;
    --sidebar-width: 280px;
    --header-height: 60px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-hover: #475569;
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
    --code-bg: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 22px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: cover;
}

.logo-img:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: rotate(5deg);
}



.logo-text {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .search-container {
        display: block;
    }
}

.search-input {
    width: 300px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.theme-toggle, .mobile-menu-toggle {
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover, .mobile-menu-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-toggle {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s;
}

@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

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

.nav-list {
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

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

.nav-link.active {
    color: var(--accent-color);
    background-color: rgb(59 130 246 / 0.1);
    border-left-color: var(--accent-color);
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background-color: var(--bg-primary);
}

@media (max-width: 1023px) {
    .main-content {
        margin-left: 0;
    }
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* Document Sections */
.doc-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.doc-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.doc-section h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.doc-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.doc-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.doc-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-info {
    background-color: rgb(59 130 246 / 0.1);
    border: 1px solid rgb(59 130 246 / 0.2);
    color: var(--accent-color);
}

.alert i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Code Blocks */
pre {
    background-color: var(--code-bg);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

pre code {
    color: #e2e8f0;
}

/* Tokenomics Grid */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tokenomics-card {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tokenomics-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.5rem 0;
}

/* Address Display */
.address-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.address-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-hover);
}

.address-display code {
    font-family: 'Fira Code', monospace;
    color: var(--accent-color);
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.copy-btn {
    padding: 0.75rem;
    border: none;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Function Documentation */
.function-doc {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.function-doc h4 {
    color: var(--accent-color);
    font-family: 'Fira Code', monospace;
    margin-bottom: 0.75rem;
}

.function-doc p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.period-card {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.period-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.apy {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

/* API Endpoints */
.api-base-url {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 1rem 0;
}

.api-base-url code {
    font-family: 'Fira Code', monospace;
    color: var(--accent-color);
}

.api-endpoint {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.endpoint-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.method {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method.get {
    background-color: rgb(34 197 94 / 0.1);
    color: #22c55e;
}

.url {
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
}

/* Tables */
.addresses-table {
    overflow-x: auto;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--accent-color);
}

th, td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    vertical-align: middle;
}

td:last-child {
    text-align: center;
}

th {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

td {
    color: var(--text-primary);
    font-weight: 500;
}

td code {
    font-family: 'Fira Code', monospace;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.explorer-link {
    color: var(--accent-color);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.explorer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.explorer-link:hover::before {
    left: 100%;
}

.explorer-link:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    border-color: var(--accent-hover);
}

.explorer-link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.explorer-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.explorer-link:hover i {
    transform: rotate(45deg);
}

/* FAQ */
.faq-item {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.support-card {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.support-card:hover {
    transform: translateY(-2px);
}

.support-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.support-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.support-card p {
    color: var(--text-secondary);
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.support-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.support-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Image Container Styles */
.image-container {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.image-container img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.image-container p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile image optimizations */
@media (max-width: 768px) {
    .image-container {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .image-container img {
        border-radius: 8px;
        max-width: 90%;
        height: auto;
        width: auto;
        display: block;
        margin: 0 auto;
    }
    
    .image-container img:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .image-container p {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        padding: 0 0.5rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

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

.visual-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.visual-description {
    margin-top: 1.5rem;
}

.visual-description h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.visual-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.round-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.round-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.round-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.round-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 1rem 0;
}

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

.bonus-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.example-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.example-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.example-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.example-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.example-detail {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.strategy-tip {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.strategy-tip h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.strategy-tip p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

/* Mobile-specific improvements */
@media (max-width: 1023px) {
    /* Improve mobile sidebar */
    .sidebar {
        width: 100%;
        max-width: 320px;
        box-shadow: var(--shadow-lg);
    }
    
    /* Better mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Mobile overlay for sidebar */
    .sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Improve touch targets */
    .nav-link {
        padding: 0.75rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .copy-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
        touch-action: manipulation;
    }
    
    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
        touch-action: manipulation;
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 480px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Force all text to wrap */
    * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Header optimizations */
    .header-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
    
    .logo {
        align-items: center;
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 18px;
        height: 26px;
        border-radius: 6px;
    }
    
    
    /* Content wrapper improvements */
    .content-wrapper {
        padding: 1rem 0.75rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    /* Typography improvements */
    .doc-section h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        display: block !important;
    }
    
    .doc-section h2 {
        font-size: 1.375rem !important;
        line-height: 1.4 !important;
        margin: 2rem 0 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        display: block !important;
    }
    
    .doc-section h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
        margin: 1.5rem 0 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        display: block !important;
    }
    
    .doc-section h4 {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
        margin: 1.25rem 0 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        display: block !important;
    }
    
    .doc-section p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.875rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        word-break: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        display: block !important;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    /* Grid improvements */
    .feature-grid,
    .tokenomics-grid,
    .staking-periods,
    .support-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin: 1.5rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .feature-card,
    .tokenomics-card,
    .support-card {
        padding: 1.25rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Steps improvements */
    .steps {
        gap: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .step {
        gap: 0.875rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content {
        width: 100%;
    }
    
    .step-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    /* Code blocks */
    pre {
        padding: 1rem;
        font-size: 0.8rem;
        line-height: 1.4;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        white-space: pre-wrap;
    }
    
    /* Image containers */
    .image-container {
        margin: 1.25rem 0;
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .image-container img {
        border-radius: 8px;
        max-width: 90%;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .image-container p {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Visuals grid */
    .visuals-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin: 1.5rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .visual-item {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .visual-item img {
        max-width: 85%;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* Rounds grid */
    .rounds-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin: 1.5rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .round-card {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .round-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        text-align: center;
    }
    
    .round-price {
        font-size: 1.75rem;
        margin: 0.75rem 0;
    }
    
    /* Bonus examples */
    .bonus-examples {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin: 1.5rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .example-card {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .example-card h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .example-detail {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Strategy tip */
    .strategy-tip {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .strategy-tip h4 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .strategy-tip p {
        font-size: 0.95rem;
    }
    
    /* Address display */
    .address-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.875rem;
    }
    
    .address-display code {
        font-size: 0.8rem;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    /* Function documentation */
    .function-doc {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .function-doc h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Tables */
    .addresses-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    table {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 0;
    }
    
    /* FAQ */
    .faq-item {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .faq-item h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Force all text to wrap */
    * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Mobile table to cards conversion for medium screens */
    .addresses-table table {
        display: block;
        width: 100%;
    }
    
    .addresses-table thead {
        display: none;
    }
    
    .addresses-table tbody {
        display: block;
        width: 100%;
    }
    
    .addresses-table tr {
        display: block;
        background: var(--bg-secondary);
        border: 2px solid var(--accent-color);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1.25rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .addresses-table td {
        display: block;
        padding: 0.75rem 0;
        border: none;
        text-align: left;
        width: 100%;
    }
    
    .addresses-table td:before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--accent-color);
        display: block;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }
    
    .addresses-table td:first-child:before {
        content: "Contract: ";
    }
    
    .addresses-table td:nth-child(2):before {
        content: "Address: ";
    }
    
    .addresses-table td:nth-child(2) {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .addresses-table td:nth-child(2) code {
        word-break: break-all;
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0.75rem;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    .addresses-table td:nth-child(2) .copy-btn {
        align-self: flex-start;
        margin-top: 0.25rem;
    }
    
    .addresses-table td:nth-child(3):before {
        content: "Network: ";
    }
    
    .addresses-table td:last-child:before {
        content: "Action: ";
    }
    
    .explorer-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
        margin-top: 0.5rem;
        display: inline-flex;
    }
    
    .explorer-link i {
        font-size: 0.8rem;
    }
    
    .content-wrapper {
        padding: 1.25rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    /* Header optimizations for medium screens */
    .header-container {
        align-items: center;
    }
    
    .logo {
        align-items: center;
        gap: 0.75rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 20px;
        height: 28px;
        border-radius: 7px;
    }
    
    
    .doc-section h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .doc-section h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .feature-grid,
    .tokenomics-grid,
    .staking-periods,
    .support-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .steps {
        gap: 1.5rem;
    }
    
    .step {
        gap: 1rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .image-container {
        margin: 1.5rem 0;
    }
    
    .image-container img {
        border-radius: 8px;
    }
    
    .visuals-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .visual-item {
        padding: 1.5rem;
    }
    
    .rounds-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bonus-examples {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .round-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .strategy-tip {
        padding: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-section {
    animation: fadeIn 0.3s ease-out;
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    /* Improve button sizes for touch */
    .copy-btn, .theme-toggle, .mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 0.875rem;
    }
    
    /* Mobile table to cards conversion */
    .addresses-table {
        font-size: 0.8rem;
    }
    
    .addresses-table table {
        display: block;
        width: 100%;
    }
    
    .addresses-table thead {
        display: none;
    }
    
    .addresses-table tbody {
        display: block;
        width: 100%;
    }
    
    .addresses-table tr {
        display: block;
        background: var(--bg-secondary);
        border: 2px solid var(--accent-color);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .addresses-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
        width: 100%;
    }
    
    .addresses-table td:before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--accent-color);
        display: block;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }
    
    .addresses-table td:first-child:before {
        content: "Contract: ";
    }
    
    .addresses-table td:nth-child(2):before {
        content: "Address: ";
    }
    
    .addresses-table td:nth-child(2) {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .addresses-table td:nth-child(2) code {
        word-break: break-all;
        font-size: 0.7rem;
        line-height: 1.4;
        padding: 0.5rem;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 6px;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    .addresses-table td:nth-child(2) .copy-btn {
        align-self: flex-start;
        margin-top: 0.25rem;
    }
    
    .addresses-table td:nth-child(3):before {
        content: "Network: ";
    }
    
    .addresses-table td:last-child:before {
        content: "Action: ";
    }
    
    .explorer-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.25rem;
        margin-top: 0.5rem;
        display: inline-flex;
    }
    
    .explorer-link i {
        font-size: 0.75rem;
    }
    
    /* Improve code blocks on mobile */
    pre {
        font-size: 0.75rem;
        line-height: 1.3;
        padding: 0.875rem;
        margin: 1rem 0;
        border-radius: 6px;
    }
    
    /* Better address display */
    .address-display {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .address-display code {
        font-size: 0.75rem;
        word-break: break-all;
        line-height: 1.4;
        padding: 0.5rem;
        background: var(--bg-tertiary);
        border-radius: 4px;
    }
    
    /* Improve function documentation */
    .function-doc h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        word-break: break-word;
    }
    
    /* Better visual items */
    .visual-item img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* Improve strategy tip */
    .strategy-tip {
        border-radius: 8px;
        padding: 1rem;
    }
    
    .strategy-tip h4 {
        font-size: 1rem;
    }
    
    .strategy-tip p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .image-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .content-wrapper {
        padding: 1rem 0.75rem;
    }
    
    .doc-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .doc-section h2 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.5rem;
    }
    
    .feature-grid,
    .tokenomics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .theme-toggle,
    .mobile-menu-toggle,
    .copy-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .content-wrapper {
        max-width: none !important;
        padding: 0 !important;
    }
}
