/* ================================================
   Prism.js Light Theme for JavaScript Guide
   Professional, Clean Syntax Highlighting
   ================================================ */

code[class*="language-"],
pre[class*="language-"] {
    color: #1e293b;
    background: none;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.7;
    tab-size: 4;
    hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
    padding: 1.5rem;
    margin: 0;
    overflow: auto;
    background: #f8fafc;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
    padding: 0.125em 0.375em;
    border-radius: 4px;
    white-space: normal;
    background: #f1f5f9;
}

/* Token Colors */

/* Comments */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #64748b;
    font-style: italic;
}

/* Punctuation */
.token.punctuation {
    color: #475569;
}

/* Namespace */
.token.namespace {
    opacity: 0.7;
}

/* Properties, Tags, Symbols, Constants */
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #dc2626;
}

/* Booleans, Numbers */
.token.boolean,
.token.number {
    color: #0284c7;
}

/* Selectors, Strings, Characters, Attribute Values, Inserted */
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #16a34a;
}

/* Operators, Entities, URLs */
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #ca8a04;
}

/* At-rules, Attribute Values, Keywords */
.token.atrule,
.token.attr-value,
.token.keyword {
    color: #7c3aed;
}

/* Functions, Classes */
.token.function,
.token.class-name {
    color: #2563eb;
}

/* Regex, Important, Variable */
.token.regex,
.token.important,
.token.variable {
    color: #ea580c;
}

/* Important, Bold */
.token.important,
.token.bold {
    font-weight: 600;
}

/* Italic */
.token.italic {
    font-style: italic;
}

/* Entity */
.token.entity {
    cursor: help;
}

/* Line Numbers */
.line-numbers .line-numbers-rows {
    border-right: 1px solid #e2e8f0;
}

.line-numbers-rows > span:before {
    color: #94a3b8;
}

/* Line Highlight */
.line-highlight {
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid #2563eb;
    margin-left: -1.5rem;
    padding-left: calc(1.5rem - 3px);
}

/* Diff Highlighting */
pre.diff-highlight > code .token.deleted:not(.prefix),
pre > code.diff-highlight .token.deleted:not(.prefix) {
    background-color: #fee2e2;
    color: #991b1b;
    display: inline;
}

pre.diff-highlight > code .token.inserted:not(.prefix),
pre > code.diff-highlight .token.inserted:not(.prefix) {
    background-color: #dcfce7;
    color: #166534;
    display: inline;
}

/* Selection */
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection,
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection {
    background: #dbeafe;
}

code[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection {
    background: #dbeafe;
}

/* Print */
@media print {
    code[class*="language-"],
    pre[class*="language-"] {
        text-shadow: none;
    }
}

/* Token Colors Summary:
   ----------------------
   Comments:    #64748b (slate gray, italic)
   Keywords:    #7c3aed (purple)
   Strings:     #16a34a (green)
   Numbers:     #0284c7 (blue)
   Functions:   #2563eb (primary blue)
   Properties:  #dc2626 (red)
   Operators:   #ca8a04 (amber)
   Variables:   #ea580c (orange)
*/
