/* ----- gothicnights: "Violet Grimoire" theme ----- */

@font-face {
    font-family: 'Bladfour';
    src: url('fonts/Bladfour-Regular_DEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bladfour Inkbleed';
    src: url('fonts/Bladfour-Inkbleed_DEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --site-primary: #9d6fb0;
    --site-primary-initial-pulse: rgba(157, 111, 176, 0.6);
    --site-primary-active-pulse: rgba(157, 111, 176, 0.9);
    --site-primary-shadow: rgba(157, 111, 176, 0.7);
    --site-primary-bright: #c49bd6;
    --site-primary-text: #0a0510;
    --site-secondary: #c49bd6;
    --site-secondary-initial-pulse: rgba(196, 155, 214, 0.6);
    --site-secondary-active-pulse: rgba(196, 155, 214, 0.9);
    --site-secondary-shadow: rgba(196, 155, 214, 0.7);
    --site-secondary-text: #0a0510;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html, body {
    min-height: 100%;
}

body {
    background: linear-gradient(160deg, #0a0510 0%, #2d1b3d 100%);
    background-attachment: fixed;
    color: #f0e6d2;
}

a {
    color: var(--site-secondary);
}

a:hover {
    color: var(--site-primary-bright);
}

.navbar {
    background-color: rgba(10, 5, 16, 0.85);
    border-bottom: 1px solid var(--site-primary);
    backdrop-filter: blur(4px);
}

.navbar-brand {
    font-family: 'Bladfour', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

main {
    padding-top: 90px;
}

/* shared.css's .btn-outline-site-primary uses --site-primary-text for its
   default (unfilled) text color too, not just the hover-filled state; that
   variable is near-black here (meant for text over a filled site-primary
   button), which reads as invisible against the dark navbar until hover. */
.btn-outline-site-primary {
    color: #f0e6d2;
}

.btn-outline-site-primary:hover {
    color: var(--site-primary-text);
}

.hero-section {
    padding: 3rem 1rem 1rem;
}

.hero-title {
    font-family: 'Bladfour Inkbleed', 'Bladfour', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f0e6d2;
    text-shadow: 0 0 12px var(--site-primary-shadow), 0 0 30px rgba(157, 111, 176, 0.4);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Bladfour', serif;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--site-secondary);
    max-width: 40rem;
    margin: 0 auto;
}

.family-card {
    background-color: rgba(45, 27, 61, 0.55);
    border: 1px solid var(--site-primary);
    border-radius: 0.75rem;
    color: #f0e6d2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.family-card:hover {
    transform: translateY(-4px);
    border-color: var(--site-primary-bright);
    box-shadow: 0 8px 24px -6px var(--site-primary-shadow);
    color: #f0e6d2;
}

.family-card-icon {
    font-size: 2.25rem;
    color: var(--site-primary);
    margin-bottom: 0.75rem;
}

.family-card .card-text {
    color: #f0e6d2;
}

.family-card-disabled {
    opacity: 0.65;
    cursor: default;
}

.family-card-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--site-primary);
}

footer {
    background-color: rgba(10, 5, 16, 0.85);
}

/* ----- Grimoire search ----- */
.power-search-group {
    z-index: 1050;
}

.search-results-container {
    top: 100%;
    z-index: 1050;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--site-primary);
}

.power-result-item {
    background-color: #150c1e;
    color: #f0e6d2;
    border-color: rgba(157, 111, 176, 0.3);
}

.power-result-item:hover,
.power-result-item:focus {
    background-color: rgba(157, 111, 176, 0.25);
    color: #f0e6d2;
}

.power-detail-card {
    background-color: rgba(45, 27, 61, 0.55);
    border: 1px solid var(--site-primary);
    border-radius: 0.75rem;
    color: #f0e6d2;
}

.power-write-up {
    white-space: pre-wrap;
}
