/**
 * Moment Rivals - Custom Styles
 * Minimal custom CSS, Bootstrap-first approach
 */

:root {
    /* === MOMENT RIVALS DESIGN TOKENS === */
    --primary-color: #9D4EDD;
    --cyan-color: #00D9FF;
    --success-color: #00EF8B;
    --danger-color: #FF4444;
    --warning-color: #FFB800;
    --info-color: #00D9FF;
    --bs-border-radius: 2px;
    /* Typography */
    --f-disp: 'Bebas Neue', 'Impact', sans-serif;
    --f-tech: 'Orbitron', 'Courier New', monospace;
    --f-body: 'Outfit', 'Segoe UI', sans-serif;
    /* Colors */
    --color-deep-bg: #050508;
    --color-bg-sect: #0b0b16;
    --color-chrome: #E8F4F8;
    --color-silver: #B8C5D0;
    --color-graphite: #1A2332;
    --grad: linear-gradient(135deg, #9D4EDD 0%, #00D9FF 100%);
    --grad-text: linear-gradient(135deg, #fff 0%, #9D4EDD 50%, #00D9FF 100%);
    --border-dim: rgba(255, 255, 255, 0.07);
    --border-cyan: rgba(0, 217, 255, 0.3);
    --border-purple: rgba(157, 78, 221, 0.3);
}
.text-muted {
    --bs-text-opacity: 1;
        color: rgb(109 122 135 / 75%) !important;
}
/* General */
body {
    color: var(--color-chrome);
    min-height: 100vh;
    font-family: var(--f-body);
    background-image: linear-gradient(149deg, #4d296a 0%, #000000e0 100%), url(../img/landing-hero-bg2.png);
    background-size: cover;
}
.deck-screen > .container-fluid {
    height: 90vh;
}
.btn {
    border-radius: 2px;
    text-transform: uppercase;
    font-family: var(--f-disp);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #9D4EDD;
    --bs-btn-border-color: rgba(157, 78, 221, 0.6);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00D9FF;
    --bs-btn-hover-border-color: rgba(0, 217, 255, 0.6);
    --bs-btn-focus-shadow-rgb: 157, 78, 221;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #9D4EDD;
    --bs-btn-active-border-color: rgba(157, 78, 221, 0.8);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25);
    --bs-btn-disabled-color: #ffffff8f;
    --bs-btn-disabled-bg: #2a1a3e;
    --bs-btn-disabled-border-color: rgba(157, 78, 221, 0.3);
    border-radius: 2px;
    text-transform: uppercase;
    font-family: var(--f-disp);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
}
.rounded {
    border-radius: 2px!important;
}
.bg-light {
    --bs-bg-opacity: 1;
    background-color: #ffffff1c!important;
}
.shadow-lg {
    box-shadow: 0px 0px 5px 0 #cfcfcf00!important;
}
.border-0 {
    border: 1px solid rgba(157, 78, 221, 0.4)!important;
}
/* Loader */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.loader-content {
    position: relative;
    text-align: center;
    color: white;
}

#tutorialModal {
    .card.h-100 {
        background: #000;
        border-radius: 2px;
        box-shadow: 3px 6px 5px #000;
    }

    .card-body {
        padding: 0px;
    }

    .card-title, .card-text {
        padding: 1rem;
    }

    .card.border-primary .card-title {
        background: #0d6efd;
        color: #000;
    }

    .card.border-warning .card-title {
        background: #ffc107;
        color: #000;
    }

    .card.border-danger .card-title {
        background: #dc3545;
        color: #000;
    }
    .accordion-item {
        color: #e0e0e0;
        background-color: #232323;
        border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
    }
    .accordion-button {
        color: #f8f9fa;
        background-color: #626262;
    }

    .accordion-button:not(.collapsed) {
        color: #ffffff;
        background-color: #131212;
        box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
    }
}

/* Cards */
.card, .modal-content {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9), rgba(11, 11, 22, 0.95));
    border: 2px solid rgba(157, 78, 221, 0.80);
    color: var(--color-chrome);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.08);
    backdrop-filter: blur(10px);
}
.deck-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;

    nav.navbar {
        height: 7vh;
    }
}
.deck-screen > .container-fluid {
    height: 93vh;
}








.card-header, .modal-header {
    background: linear-gradient(135deg, rgba(11, 11, 22, 0.95), rgba(5, 5, 8, 0.98));
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

/* Deck Builder */
#deckSlots {
    height: 100%;
    overflow: hidden;
    overflow-y: scroll;
}
.deck-slots {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    gap: 14px;
    justify-content: space-between;
}

.deck-slot {
    height: 25%;
    border-radius: 2px;
    position: relative;
    width: 18%;
    margin-right: 0%;
}

.deck-slot.empty {
    background: rgba(26, 35, 50, 0.4);
    border: 1px solid rgba(157, 78, 221, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 3px 3px 2px rgba(0, 0, 0, 0.4);
}

.empty-slot-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.deck-slot.filled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0px;
}

.deck-info {
    height: auto;
    border-radius: 2px;
    position: relative;
    width: 60%;
    margin-right: 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.7;
}

.toast {
    background-color: rgb(41 40 40 / 23%);
    border-radius: 0px;
    border: 1px solid #fbfbfb;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    box-shadow: 0px 0px 10px #fff;

    .bg-success {
        --bs-bg-opacity: 1;
        background-color: rgb(25 135 84 / 58%) !important;
    }

    .bg-info {
        --bs-bg-opacity: 1;
        background-color: rgb(0 212 255 / 57%) !important;
    }

    .bg-danger {
        --bs-bg-opacity: 1;
        background-color: rgb(220 53 69 / 57%) !important;
    }
}

.remove-btn {
    position: absolute;
    top: -3px;
    right: -3px;
    padding: 4px 8px;
    font-size: 1rem;
    border-radius: 1px;
    box-shadow: -2px 2px 4px #00000054;
    background: #000;
    border: 1px solid #ffffff38;

    &:hover {
        background: rgba(0, 0, 0, 0.545);
    }

    &:active {
        border: 1px solid #ffffff8e;
        background:#000;
    }
}

.collection-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;

    .col {
        flex: unset;
        width: 18%;
    }
}

.moment-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 7px 7px 5px #0000006b;
}

.moment-card:hover {
    transform: translateY(-5px);
       box-shadow: 12px 11px 10px #00000078;
}

.moment-card.selected {
    border: 2px solid var(--success-color);
    box-shadow: 0 0 20px rgba(25, 135, 84, 0.5);
}

.moment-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-badge {
    position: absolute;
    top: 25%;
    right: 35%;
    font-size: 3.5rem;
    color: var(--success-color);
    z-index: 10;
    text-shadow: -6px 5px 3px #000000c2;
}
.action-btns {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
}

/* Card Tile */
.card-tile {
    background: linear-gradient(31deg, rgb(25 24 24) 0%, rgb(22 21 21) 100%);
    border-radius: 2px;
    padding: 0px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.card-tile-compact {
    background: linear-gradient(45deg, #0e0e0e, #171616);
    border-radius: 2px;
    padding: 0px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    box-shadow: 5px 5px 3px #02020263;
}

.card-tile.offense, .card-tile-compact.offense {
    border-color: var(--danger-color);
}

.card-tile.defense, .card-tile-compact.defense {
    border-color: #0d6efd;
}

.card-tile.support, .card-tile-compact.support {
    border-color: var(--warning-color);
}

.card-type-indicator {
    position: absolute;
    top: 0px;
    left: 0px;
    width: auto;
    padding: 3px 4px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.card-cost-badge {
    background: rgb(38 38 38);
    color: #ffc107;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 5px;
    box-shadow: inset -2px 2px 2px #000;
}

.card-name-compact {
    font-family: var(--f-disp);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-top: 30px;
    padding: 5px;
    padding-bottom: 0px;
    text-align: center;
    text-transform: uppercase;
    font-style: normal;
}

.card-stats-compact {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.card-tile-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
    border-bottom: none;
    flex-direction: row;
    align-items: center;
}

.card-tile-body {
    position: relative;
    overflow: hidden;
    background: #050508;
}

img.card-image {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 0;
}

.card-player-name {
    position: relative;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding: 0px 5px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    margin-top: 90%;
    display: flex;
    height: 30px;
    align-items: flex-end;
    line-height: 0.9rem;
    justify-content: center;
}

.card-nft-badge {
    font-size: 0.7rem;
    color: #fff;
    background: #000000a8;
    box-shadow: inset 3px 3px 4px #000;
    padding: 0.4rem .5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: normal;
}
.card-cost {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: -5px;
    text-shadow: 0px 0px 5px #00000063;
    color: #000;
    padding: 0px 0.5rem;
    line-height: 1.5rem;
    border-radius: 4px;
}
.card-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
}

.stat-item {
    background: #ffffff0d;
    padding: 4px 8px;
    border-radius: 2px;
    text-align: center;
    border: 1px solid #ffffff21;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.7;
}

.stat-value {
    font-family: var(--f-tech);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.2rem;
}

/* Card Preview (Lobby) */
.lobby-screen .card {
    height: auto;
}

.lobby-screen .badge {
    padding: 0.5rem 2.5rem;
    font-size: 1rem;
    border: 1px solid #ffffff42;
    min-width: 14%;
}


.deck-preview-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 27px;
    height: 68vh;
    padding-bottom: 50px;
    overflow: hidden;
    overflow-y: scroll;
}
.deck-preview-row .card-preview {
    width: 18%;
}
.card-preview-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-preview-img.offense {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.05));
}

.card-preview-img.defense {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.05));
}

.card-preview-img.support {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.05));
}

.card-type-badge {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5em;
    color: #000;
}

/* Match Screen */
.match-screen {
.hand-grid {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    width: 85%;
}
.card-hand-holder {
    width: 10%;
}



.modal-content {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(11, 11, 22, 0.98));
    border: 1px solid rgba(157, 78, 221, 0.4);
    color: var(--color-chrome);
    border-radius: 3px;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.15);
    backdrop-filter: blur(20px);
}
.modal-header {
    border-bottom: var(--bs-modal-header-border-width) solid #dee2e600;
    background: #131111;
}
.modal-footer {
    border-top: var(--bs-modal-footer-border-width) solid #dee2e600;
}
    /* Card Styling */
.card-tile {
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 18px 10px rgb(0 0 0);
}
.btn-cycler {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    line-height: 2rem;
    padding: 5px;
}
.card-tile-large {
    width: 150px;
}

.card-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 19px rgb(0 0 0 / 56%);
}

.card-tile.selected {
    border-color: #00D9FF;
    transform: translateY(-8px);
}

.card-tile.unaffordable {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.card-tile.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Board Styling */
.round-column {
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.round-column.active {
    border-color: #00D9FF;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.round-column.complete {
    background-color: rgba(0,0,0,0.1);
}

.turn-cell {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 5px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.turn-cell.current {
    border-color: #9D4EDD;
    background-color: rgba(157, 78, 221, 0.1);
}

.turn-cell.resolved {
    background-color: rgba(0,255,0,0.05);
}

/* Energy Meter */
.energy-meter {
    width: 100%;
}

.progress {
    background-color: rgba(255,255,255,0.1);
}

/* Log Styling */
.log-entry {
    padding: 8px;
    margin-bottom: 5px;
    border-left: 3px solid rgba(0,255,0,0.5);
    background-color: rgba(0,0,0,0.05);
    border-radius: 3px;
    font-size: 0.9em;
}

/* Moment Badge */
.moment-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}
}
.round-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.round-column.active {
    border-color: #9D4EDD;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.round-column.complete {
    opacity: 0.7;
}

.round-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.turn-cell {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    min-height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.turn-cell.current {
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.3);
}
.tally {
    width: 80%;
}
.turn-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 4px;
    width: 20%;
}
.plays {
    display: flex;
    justify-content: space-between;
}
.play {
    font-size: 0.75rem;
    margin: 2px 0;
    padding: 2px 4px;
    border-radius: 2px;
    width: 50%;
    text-align: center;
}

.player-play {
    background: rgba(13, 110, 253, 0.2);
    color: var(--info-color);
}

.opponent-play {
    background: rgba(220, 53, 69, 0.2);
    color: #ff8080;
}

.turn-score {
    margin-top: 4px;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.round-score {
    text-align: center;
    font-size: 0.8rem;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}
.round-score small {
    width: 50%;
    text-align: center;
}

/* Hand Area */
.hand-area {
    min-height: 200px;
}

.hand-card {
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.hand-card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.hand-card.selected {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Energy Meter */
.energy-meter {
    margin-bottom: 8px;
}

.energy-value {
    font-family: var(--f-tech);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Event Log */
.event-log {
    background: rgba(0, 0, 0, 0.3);
}

.log-entry {
    background: rgba(157, 78, 221, 0.06);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-family: var(--f-body);
    border-left: 3px solid rgba(157, 78, 221, 0.6);
}

/* DevTools */
.devtools-logs {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 12px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .round-column {
        margin-bottom: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


.results-screen {
.table {
    --bs-table-color-type: initial;
    --bs-table-bg-type: initial;
    --bs-table-color-state: initial;
    --bs-table-bg-state: initial;
    --bs-table-color: var(--bs-emphasis-color);
    --bs-table-bg: #ffffff2b;
    --bs-table-border-color: #dee2e65c;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-emphasis-color);
    --bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
    --bs-table-active-color: var(--bs-emphasis-color);
    --bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
    --bs-table-hover-color: var(--bs-emphasis-color);
    --bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
    width: 100%;
    color: #fff;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: var(--bs-table-border-color);
}
}