/* ============================================
   MortalPins Utilities
   Small reusable classes and Bootstrap overrides
   ============================================ */

.bg-gradient-primary-to-secondary {
    background: linear-gradient(135deg, var(--mp-gold), var(--mp-pink), var(--mp-blue)) !important;
}

.muted {
    color: var(--mp-muted) !important;
}

.rounded-border {
    border-radius: calc(var(--mp-radius) * 1.15) !important;
}

.rounded-border-top {
    border-top-left-radius: calc(var(--mp-radius) * 1.15) !important;
    border-top-right-radius: calc(var(--mp-radius) * 1.15) !important;
}

.rounded-border-bottom {
    border-bottom-left-radius: calc(var(--mp-radius) * 1.15) !important;
    border-bottom-right-radius: calc(var(--mp-radius) * 1.15) !important;
}

.truncate-name-size {
    width: 100%;
}

.first-badge {
    width: fit-content;
    padding: 1em;
    border-radius: 5px;
    color: white;
    position: absolute;
    background: linear-gradient(10deg, #4e3aff 0%, #e21e80 100%);
    top: -.25em;
}

.range {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #121528;
    color: white;
    font-size: .85rem;
}

.about-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.oracle {
    position: fixed;
    bottom: .8em;
}

.menu-items {
    list-style: none;
    padding: 0;
}

.made-by {
    display: block;
    margin-top: 1rem;
    color: var(--mp-muted);
    font-size: .9rem;
    font-family: "Orbitron", sans-serif;
    letter-spacing: .5px;
}

.hyper-link {
    color: var(--mp-gold) !important;
    font-weight: 800;
    text-decoration: none;
    position: relative;
}

    .hyper-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0%;
        height: 2px;
        background: linear-gradient(135deg, var(--mp-gold), var(--mp-pink));
        transition: width .3s ease;
    }

    .hyper-link:hover::after {
        width: 100%;
    }

/* Bootstrap overrides */
.dropdown-menu {
    z-index: 99999;
}

.dropdown-toggle::after {
    display: none !important;
}

.card,
.accordion-item {
    background-color: transparent;
}

.list-group-item {
    background: transparent;
    color: white !important;
}

    .list-group-item:hover,
    .list-group-item.active {
        background: linear-gradient(135deg, var(--mp-gold), var(--mp-pink), var(--mp-blue));
        color: white !important;
        border-color: transparent !important;
    }

.form-control {
    min-height: 2.85rem;
    color: var(--mp-text);
    background: rgba(255, 255, 255, .08);
    border-color: var(--mp-border);
}

    .form-control:focus {
        color: var(--mp-text);
        background: rgba(255, 255, 255, .1);
        border-color: rgba(246, 200, 95, .65);
        box-shadow: 0 0 0 .25rem rgba(246, 200, 95, .12);
    }

    .form-control:disabled {
        color: var(--mp-text);
        background: rgba(255, 255, 255, .64);
        border-color: rgba(255, 255, 255, .65);
        opacity: .3;
    }

.form-check-input:checked {
    background-color: #d5208b;
    border-color: #d5208b;
}

.tooltip-inner {
    background: #1e1e27 !important;
    border: 1px solid #4b19eb !important;
    box-shadow: 0 0 12px #a7196b !important;
    color: #ffffff !important;
    padding: 1em !important;
    max-width: 260px;
    border-radius: 4px;
}

.tooltip-arrow::before {
    border-top-color: #1a0f0f !important;
}

.accordion-button {
    color: white;
}

    .accordion-button:not(.collapsed) {
        color: #ffffff;
    }

    .accordion-button::after {
        font-family: "bootstrap-icons";
        content: "\f282";
        font-size: 1.25rem;
        background-image: none !important;
        transform: none;
    }

    .accordion-button:not(.collapsed)::after {
        content: "\f286";
    }

.page-item:first-child .page-link {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

.page-item:last-child .page-link {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.page-item.active .page-link.mp-button-modern,
.page-item:not(:first-child) .page-link {
    border-radius: 0 !important;
}

/* Offcanvas and modals */
.offcanvas,
.modal-content {
    background: var(--mp-surface) !important;
    backdrop-filter: blur(18px);
}

.offcanvas-footer {
    padding: 1em;
}

.btn-close {
    filter: invert(1);
}

/* Responsive global fixes */
@media (max-width: 995px) {
    .border-end {
        border: 0 !important;
    }
}

@media (min-width: 340px) {
    .store tbody tr {
        width: 47% !important;
    }

    .footer {
        line-height: 1.5;
    }
}

@media (max-width: 700px) {
    .glyph {
        left: 0 !important;
    }

    .truncate-name-size {
        width: 140px !important;
    }
}

@media (max-width: 768px) {
    .trade-card {
        visibility: visible !important;
        text-align: justify;
        height: 100%;
        align-content: center;
    }

    table.table thead {
        display: none;
    }

    table.table,
    table.table tbody,
    table.table tr,
    table.table td {
        width: 100% !important;
    }

        table.table tr {
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: .5rem;
        }

        table.table td {
            position: relative;
            padding: 1.5em;
            display: inline-block;
            text-align: center;
        }
}

.offer-action-modal {
    text-align: left;
    padding: 1.25rem;
    border-radius: var(--mp-radius);
    position: relative;
}

.offer-modal-orb {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 999px;
    color: #111122;
    background: linear-gradient(135deg, var(--mp-gold), #fff2b8);
    box-shadow: 0 0 2rem rgba(246, 200, 95, .16);
}

    .offer-modal-orb i {
        font-size: 1.75rem;
    }

.offer-modal-body p {
    margin-bottom: .85rem;
    color: var(--mp-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.offer-modal-actions {
    margin-top: 1.25rem;
}

    .offer-modal-actions .mp-button-modern {
        flex: 1 1 auto;
    }

@media (max-width: 575.98px) {
    .offer-modal-actions {
        flex-direction: column;
    }

        .offer-modal-actions .mp-button-modern {
            width: 100%;
        }
}

.editor-area img {
    max-width: 100%;
    border-radius: .5rem;
    transition: all .2s ease;
    cursor: pointer;
}

    .editor-area img:focus,
    .editor-area img.selected {
        outline: 2px solid var(--mp-gold);
    }
.form-control:disabled, .form-control[readonly] {
    background: #000000ad;
    opacity: .5
}