/* =====================================================
   Shared Styles - Used by both Big Brother and Lorcana Hunter
   ===================================================== */

/* Font Face */
@font-face {
    font-family: 'Cantabile';
    src: url('/assets/fonts/Cantabile.ttf.woff') format('woff'),
         url('/assets/fonts/Cantabile.ttf.svg#Cantabile') format('svg'),
         url('/assets/fonts/Cantabile.ttf.eot'),
         url('/assets/fonts/Cantabile.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Cantabile", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
}


/* =====================================================
   Utility Classes
   ===================================================== */
figure {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.align-right {
    display: flex;
    justify-content: flex-end;
}

.card-text-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--font-color);
    color: black;
}

/* =====================================================
   Lorcana Color Backgrounds
   ===================================================== */
.bg-forest {
    --tw-bg-opacity: 1;
    background-color: rgb(158 176 66 / var(--tw-bg-opacity));
}

.bg-mountain {
    --tw-bg-opacity: 1;
    background-color: rgb(189 128 73 / var(--tw-bg-opacity));
}

.bg-ocean {
    --tw-bg-opacity: 1;
    background-color: rgb(88 113 166 / var(--tw-bg-opacity));
}

.bg-color-reserve-cost {
    background-color: indianred;
}

/* =====================================================
   Theme Banner
   ===================================================== */
.theme-banner {
    background-image: url('/assets/faction_bg/muna.png');
    background-size: cover;
    background-position: 50% 35%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

/* =====================================================
   Typography
   ===================================================== */
.display-4 {
    font-family: 'Cantabile', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    font-size: 2rem;
    line-height: 1;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* =====================================================
   Decorative HR
   ===================================================== */
.hr-style {
    height: 9px;
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, #FFFEFC 0%, #DDBF5F 30%, #FFFEFC 100%);
    border: 0;
    opacity: 1;
}

/* =====================================================
   Shared Tooltip
   ===================================================== */
.tooltip-custom {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip-custom .tooltiptext {
    visibility: hidden;
    width: 340px;
    background-color: black;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 5px 0;
    margin-left: -150px;
    position: absolute;
    z-index: 1;
}

.tooltip-custom:hover .tooltiptext {
    visibility: visible;
}

/* ── Ajax Autocomplete ──────────────────────────────── */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 260px;
    overflow-y: auto;
}

.autocomplete-suggestions .suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.autocomplete-suggestions .suggestion-item:hover,
.autocomplete-suggestions .suggestion-item.selected {
    background: #f3f4f6;
    color: #111827;
}

/* ── Mobile filters accordion ─────────────────────────── */
.filters-toggle-btn .filters-chevron {
    transition: transform 0.2s ease;
}
.filters-toggle-btn[aria-expanded="true"] .filters-chevron {
    transform: rotate(180deg);
}
