/* ===================================================================
   CARDS/TYPES.CSS
   Card Type Variants (Creature, Item, Piece, Config, Attack, etc.)
   =================================================================== */
/* ===== 54. CARD VARIANTS ===== */

/* ----- 54.1 Attack Card ----- */
.attack-card {
    border-left: 3px solid #c0392b;
}

/* ----- 54.2 Prefab Card ----- */
.prefab-card {
    border-left: 3px solid #0088cc;
}

.prefab-card .mod-name {
    color: #0088cc;
}

/* ----- 54.3 Prefab Tag ----- */
.prefab-tag {
    background-color: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    margin-right: 5px;
}

/* ----- 54.4 Inventory Tag ----- */
.inventory-tag {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----- 54.5 Drop Tag ----- */
.drop-tag {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== 57. CARD TYPE STYLES ===== */

/* ----- 57.1 Attack Card ----- */
.attack-card .mod-name {
    color: #c0392b;
}

.attack-card .mod-type {
    background-color: #c0392b;
}

/* ----- 57.2 Book Card ----- */
.book-card {
    border-left: 3px solid #27ae60;
}

.book-card .mod-name {
    color: #27ae60;
}

.book-card .mod-type {
    background-color: #27ae60;
}

/* ----- 57.3 Summon Card ----- */
.summon-card {
    border-left: 3px solid #2ecc71;
}

.summon-card .mod-name {
    color: #2ecc71;
}

.summon-card .mod-type {
    background-color: #2ecc71;
}

/* ----- 57.4 Transform Card ----- */
.transform-card {
    border-left: 3px solid #00e676;
}

.transform-card .mod-name {
    color: #00e676;
}

.transform-card .mod-type {
    background-color: #00e676;
}

/* ----- 57.5 Mount Card ----- */
.mount-card {
    border-left: 3px solid #d35400;
}

.mount-card .mod-name {
    color: #d35400;
}

.mount-card .mod-type {
    background-color: #d35400;
}

/* ----- 57.6 Config Card ----- */
.config-card {
    border-left: 3px solid #f1c40f;
}

.config-card .mod-name {
    font-size: 16px;
    color: #f1c40f;
}

.config-card .mod-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-number {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ----- 57.6 Config Badge & Modal ----- */
.config-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 10;
    pointer-events: none;
}

.view-config-button {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.view-config-button:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    /* Removed translateY to prevent lift */
}

.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.config-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.config-modal-content {
    position: relative;
    background: #1e1e2e;
    border-radius: 12px;
    max-width: 95vw;
    width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.config-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    gap: 1.5rem;
}

.config-modal-header h2 {
    margin: 0;
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.config-search-container {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
}

.config-search-container:focus-within {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.config-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    padding: 0;
}

.config-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.config-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    min-height: 500px;
    background: #0d0d1a;
    /* Scrollbar styling in modals.css */
}

.config-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.config-modal-footer button {
    padding: 0.75rem 1.5rem;
    background: #00d4ff;
    color: #0d0d1a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95em;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.config-modal-footer button:hover {
    background: #00b4d8;
    /* Removed translateY to prevent lift */
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Duplicate rule removed */

/* ----- 57.6.1 Config Editor with Line Numbers ----- */
.config-editor-container {
    display: none;
    position: relative;
    flex-direction: row;
    height: 100%;
    background: #282c34;
    border-radius: 4px;
    overflow: hidden;
}

.config-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;
}

.config-line-numbers div {
    height: 25.2px;
}

.config-editor {
    flex: 1;
    background: #282c34;
    color: #abb2bf;
    border: none;
    padding: 15px;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
    resize: none;
    outline: none;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre;
    tab-size: 2;
    display: block;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.config-editor::-webkit-scrollbar {
    display: none;
}

.config-modal-body .config-editor-container {
    display: none;
}

.config-modal-body .mod-card-content-big {
    display: flex;
}

.config-modal-body .config-display {
    display: none;
}

/* ----- 57.7 Section Card ----- */
.section-card {
    border-left: 3px solid #0088cc;
}

.section-card .mod-name {
    color: #0088cc;
}

/* ===== 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: 100%;
    flex: 1;
    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 in modals.css */
}

.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 in modals.css */
}

/* ----- 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: none;
    height: auto;
    min-height: auto;
    flex: 1;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
}

/* ===== 58. CARD TYPE STYLES (CONTINUED) ===== */

/* ----- 58.1 Creature Card ----- */
.creature-card {
    border-left: 3px solid #e67e22;
}

.creature-card .mod-name {
    color: #e67e22;
}

.creature-card .mod-type {
    background-color: #e67e22;
}

/* ----- 58.2 Item Card ----- */
.item-card {
    border-left: 3px solid #1abc9c;
}

.item-card .mod-name {
    color: #1abc9c;
}

.item-card .mod-type {
    background-color: #1abc9c;
}

/* ----- 58.3 Piece Card ----- */
.piece-card {
    border-left: 3px solid #9b59b6;
}

.piece-card .mod-name {
    color: #9b59b6;
}

.piece-card .mod-type {
    background-color: #9b59b6;
}



/* ----- 58.4 Prefab Card (Full Style) ----- */
.prefab-card {
    border-left: 3px solid #0088cc;
}

.prefab-card .mod-name {
    color: #0088cc;
}

.prefab-card .mod-type {
    background-color: #0088cc;
}

/* ----- 58.5 Misc Card ----- */
.misc-card {
    border-left: 3px solid #87CEEB;
}

.misc-card .mod-name {
    color: #87CEEB;
}

.misc-card .mod-type {
    background-color: #87CEEB;
}
