/* ============================================
   WebForge — Cheatsheet Styles
   ============================================ */

.cheatsheet-header {
    text-align: center;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--accent-blue);
}

.cheatsheet-header h1 {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
}

/* === Cheatsheet Table === */
.cheatsheet-table-wrapper {
    overflow-x: auto;
    margin: var(--space-6) 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.cheatsheet-table {
    width: 100%;
    font-size: var(--font-size-sm);
}

.cheatsheet-table thead {
    background-color: var(--bg-tertiary);
}

.cheatsheet-table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--accent-blue);
}

.cheatsheet-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.cheatsheet-table tbody tr:last-child td {
    border-bottom: none;
}

.cheatsheet-table tbody tr:hover {
    background-color: rgba(88, 166, 255, 0.04);
}

.cheatsheet-table .code-cell {
    font-family: var(--font-code);
    font-size: var(--font-size-xs);
    background-color: var(--bg-tertiary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    display: inline-block;
    white-space: nowrap;
}

/* === Cheatsheet Section === */
.cheatsheet-section {
    margin-bottom: var(--space-10);
}

.cheatsheet-intro {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.cheatsheet-intro code {
    font-family: var(--font-code);
    font-size: var(--font-size-xs);
    background-color: var(--bg-tertiary);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
}

.cheatsheet-section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* === Print Styles === */
.cheatsheet-print-btn {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-sidebar);
}

@media print {
    .site-header,
    .site-sidebar,
    .site-footer,
    .cheatsheet-print-btn,
    .sidebar-overlay {
        display: none !important;
    }

    .page-wrapper {
        display: block !important;
    }

    .main-content {
        max-width: 100%;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }

    body::before {
        display: none;
    }

    .cheatsheet-table {
        font-size: 10pt;
    }

    .cheatsheet-table th {
        background-color: #f0f0f0;
        color: #333;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .code-cell {
        background-color: #f5f5f5;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a {
        color: #333;
        text-decoration: underline;
    }
}