/* ===================================================================
   CARDS/CONTENT-VIEWERS.CSS
   Code Content Viewers with Line Numbers and Syntax Highlighting
   =================================================================== */
/* ===== 57.8 CARD CONTENT VIEWERS ===== */

/* ----- 57.8.1 Small Card Content Viewer ----- */
.mod-card-content-small {
    display: flex;
    flex-direction: row;
    background: #282c34;
    border-radius: 4px;
    overflow: hidden;
    height: 280px;
    font-size: 0.75em;
}

.mod-card-content-small-line-numbers {
    background: #21252b;
    color: #5c6370;
    padding: 6px 4px;
    text-align: right;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    line-height: 1.6;
    user-select: none;
    overflow: hidden;
    border-right: 1px solid #181a1f;
    min-width: 35px;
    flex-shrink: 0;
}

.mod-card-content-small-line-numbers div {
    height: 17.6px;
}

.mod-card-content-small-viewer {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    background: #282c34;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mod-card-content-small-viewer::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mod-card-content-small-code {
    margin: 0;
    background: transparent;
    padding: 6px;
    border-radius: 0;
    border: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mod-card-content-small-code::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mod-card-content-small-code code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #abb2bf;
    display: block;
    white-space: pre;
    tab-size: 2;
    -moz-tab-size: 2;
    background-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mod-card-content-small-code code::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ----- 57.8.2 Big Card Content Viewer ----- */
.mod-card-content-big {
    display: flex;
    position: relative;
    flex-direction: row;
    height: 100%;
    background: #282c34;
    border-radius: 4px;
    overflow: hidden;
}

.mod-card-content-big-line-numbers {
    background: #21252b;
    color: #5c6370;
    padding: 15px 10px;
    text-align: right;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
    user-select: none;
    overflow: hidden;
    border-right: 1px solid #181a1f;
    min-width: 50px;
}

.mod-card-content-big-line-numbers div {
    height: 25.2px;
}

.mod-card-content-big-viewer {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    background: #282c34;
    /* Scrollbar styling moved to modals.css for visibility */
}

.mod-card-content-big-viewer pre {
    margin: 0;
    background: transparent;
    padding: 15px;
    border-radius: 0;
    border: none;
    overflow-x: visible;
}

.mod-card-content-big-viewer code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #abb2bf;
    display: block;
    white-space: pre;
    tab-size: 2;
    -moz-tab-size: 2;
    background-color: transparent;
    /* Scrollbar styling moved to modals.css for visibility */
}

/* ----- 57.8.3 Syntax Highlighting ----- */
.mod-card-content-big-viewer .hljs-comment,
.mod-card-content-small-code .hljs-comment {
    color: #6A9955;
}

.mod-card-content-big-viewer .hljs-attr,
.mod-card-content-small-code .hljs-attr {
    color: #9CDCFE;
}

.mod-card-content-big-viewer .hljs-string,
.mod-card-content-small-code .hljs-string {
    color: #CE9178;
}

.mod-card-content-big-viewer .hljs-number,
.mod-card-content-small-code .hljs-number {
    color: #B5CEA8;
}

.mod-card-content-big-viewer .hljs-literal,
.mod-card-content-small-code .hljs-literal {
    color: #569CD6;
}

.mod-card-content-big-viewer .hljs-bullet,
.mod-card-content-small-code .hljs-bullet {
    color: #D4D4D4;
}

/* ----- 57.8.4 Card Body Height Fix ----- */
.mod-card .mod-card-body,
.mod-card.creature-card .mod-card-body,
.mod-card.item-card .mod-card-body,
.mod-card.piece-card .mod-card-body,
.mod-card.mount-card .mod-card-body,
.mod-card.attack-card .mod-card-body,
.mod-card.book-card .mod-card-body,
.mod-card.summon-card .mod-card-body,
.mod-card.transform-card .mod-card-body {
    padding: 0;
    overflow: visible;
    max-height: 280px;
    height: 280px;
    min-height: 280px;
    flex: 0 0 280px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 280px;
}


