/* DexHacks Guide Pages & Cheats Stylesheet (ver 20260705au) */

.cheats-container-wrapper {
    display: flex;
    gap: 28px;
    width: 100%;
    align-items: flex-start;
}

.cheats-main-content {
    flex: 1;
    min-width: 0;
}

/* Top TOC Panel */
.cheats-toc-panel {
    background: #131316;
    border: 1px solid #202024;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.toc-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #27272a;
    padding-bottom: 10px;
}

.toc-panel-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.toc-panel-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-panel-link:hover {
    color: #10b981;
}

.toc-panel-num {
    color: #10b981;
    font-weight: 700;
}

/* Warnings and Callouts */
.cheats-callout {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.cheats-warning {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.callout-title {
    font-size: 14px;
    font-weight: 700;
    color: #f87171;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.warning-title {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.callout-desc, .warning-desc {
    margin: 0;
    font-size: 13px;
    color: #e4e4e7;
    line-height: 1.6;
}

/* Mono Code Blocks */
.byte-address {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #1c1c21;
    color: #34d399;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #2d2d34;
    font-size: 12px;
}

.code-snippet-panel {
    background: #131316;
    border: 1px solid #202024;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #e4e4e7;
    line-height: 1.6;
    overflow-x: auto;
}

.code-comment {
    color: #88888e;
}

.code-address {
    color: #10b981;
    font-weight: 700;
}

.code-value {
    color: #fbbf24;
}

/* Dynamic Tables styling */
.npc-services-table-wrapper, 
.sandbox-compare-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #131316;
    border: 1px solid #202024;
    border-radius: 10px;
    margin: 20px 0 28px;
}

.npc-services-table,
.sandbox-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.npc-services-table th,
.sandbox-compare-table th {
    background: #1f1f23;
    color: #fff;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 2px solid #27272a;
    white-space: nowrap;
}

.npc-services-table td,
.sandbox-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #27272a;
    color: #cbd5e1;
    vertical-align: top;
    line-height: 1.5;
}

.npc-services-table tbody tr:nth-child(even),
.sandbox-compare-table tbody tr:nth-child(even) {
    background: #18181b;
}

.npc-services-table tbody tr:hover,
.sandbox-compare-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.01);
}

.npc-services-table td strong {
    color: #fff;
}

/* ASCII Flow Chart styling */
.ascii-flowchart {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #0b0b0d;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 20px;
    color: #34d399;
    font-size: 11px;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre;
    margin: 20px 0;
}

/* Table Search Input */
.table-search-input {
    width: 100%;
    background: #131316;
    border: 1px solid #27272a;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.table-search-input:focus {
    border-color: #10b981;
}

/* Responsive styles */
@media (max-width: 640px) {
    .toc-panel-grid {
        grid-template-columns: 1fr;
    }
}
