/* ============================================================
/* ---------- Invert all "cross" icons everywhere on the site (theistic-Satanism uses inverted cross) ---------- */
i.fas.fa-cross, i.fa-cross { transform: rotate(180deg); display: inline-block; }

   EXTRAS — site additions: shop, AI search, library improvements
   Stays in the dark/red/gold aesthetic of style.css
   ============================================================ */

/* ---------- Shared utility ---------- */
.fa, .fas, .far, .fab { line-height: 1; vertical-align: middle; }

/* ---------- Funds notice banner ---------- */
.funds-notice {
    background: linear-gradient(90deg, rgba(139,26,26,0.12), rgba(201,168,76,0.08), rgba(139,26,26,0.12));
    border-top: 1px solid rgba(201,168,76,0.25);
    border-bottom: 1px solid rgba(201,168,76,0.25);
    color: #d8ccb8;
    font-size: 0.85rem;
    line-height: 1.7;
    padding: 1rem 1.5rem;
    margin: 0 0 2rem;
    text-align: center;
}
.funds-notice i { color: var(--accent-gold, #c9a84c); margin-right: 0.5rem; }
.funds-notice strong { color: #e8dcc8; }

/* ---------- Shop ---------- */
.shop-hero {
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
    background:
        linear-gradient(rgba(8,6,6,0.85), rgba(8,6,6,0.95)),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=1600&q=70') center/cover;
}
.shop-hero h1 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: 0.08em;
    color: #e8dcc8;
    margin: 0 0 0.5rem;
}
.shop-hero p {
    color: rgba(200,185,165,0.7);
    max-width: 620px;
    margin: 0 auto;
    font-style: italic;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.shop-item {
    background: rgba(10,8,8,0.85);
    border: 1px solid rgba(139,26,26,0.22);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.shop-item:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.5);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.shop-item-media {
    aspect-ratio: 1 / 1;
    background: #1a1010 center/cover no-repeat;
    border-bottom: 1px solid rgba(139,26,26,0.18);
    position: relative;
}
.shop-item-media.placeholder::before {
    content: '\f02d'; /* fa-book */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139,26,26,0.25);
    font-size: 4rem;
}

.shop-item-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(139,26,26,0.92);
    color: #f3e8d0;
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}
.shop-item-badge.coming { background: rgba(80,60,30,0.92); color: #e8c977; }
.shop-item-badge.released { background: rgba(50,100,60,0.85); color: #b6e0c2; }

.shop-item-body { padding: 1.25rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.shop-item-title {
    font-family: 'Cinzel', serif;
    color: #e8dcc8;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.3;
}
.shop-item-category {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(201,168,76,0.75);
}
.shop-item-desc {
    font-size: 0.85rem;
    color: rgba(200,185,165,0.65);
    line-height: 1.65;
    flex: 1;
}
.shop-item-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(139,26,26,0.18);
}
.shop-item-price {
    font-family: 'Cinzel', serif;
    color: #e8dcc8;
    font-size: 1.15rem;
}
.shop-item-price-member {
    font-size: 0.78rem;
    color: var(--accent-gold, #c9a84c);
}
.shop-item-price-member s { color: rgba(160,140,110,0.5); margin-right: 0.4rem; }

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(139,26,26,0.18);
    border: 1px solid rgba(139,26,26,0.5);
    color: #e8dcc8;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.shop-btn:hover { background: rgba(139,26,26,0.35); border-color: rgba(201,168,76,0.6); color: #fff; }
.shop-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Library improvements ---------- */
.library-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(10,8,8,0.7);
    border: 1px solid rgba(139,26,26,0.22);
    border-radius: 4px;
}
.library-search {
    flex: 1 1 220px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(139,26,26,0.3);
    color: #e8dcc8;
    padding: 0.55rem 0.85rem;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.88rem;
}
.library-search:focus { outline: none; border-color: rgba(201,168,76,0.6); }
.library-filter {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(139,26,26,0.3);
    color: #e8dcc8;
    padding: 0.55rem 0.85rem;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.library-count {
    margin-left: auto;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(200,185,165,0.5);
}

.lib-book {
    background: rgba(10,8,8,0.8);
    border: 1px solid rgba(139,26,26,0.18);
    border-radius: 4px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 0.85rem;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}
.lib-book:hover { border-color: rgba(201,168,76,0.45); transform: translateX(2px); }
.lib-book.locked { opacity: 0.6; }

.lib-book-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.lib-book-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #e8dcc8;
    margin: 0;
    line-height: 1.3;
}
.lib-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0.55rem;
}
.lib-book-tag {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border: 1px solid rgba(139,26,26,0.35);
    color: rgba(200,185,165,0.7);
    border-radius: 2px;
}
.lib-book-tag.gold { color: var(--accent-gold, #c9a84c); border-color: rgba(201,168,76,0.5); }
.lib-book-tag.red { color: #e07a7a; border-color: rgba(192,57,43,0.5); background: rgba(192,57,43,0.08); }
.lib-book-excerpt {
    font-size: 0.88rem;
    color: rgba(200,185,165,0.7);
    line-height: 1.8;
    margin-bottom: 0.65rem;
}

.lib-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.lib-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(139,26,26,0.4);
    border-radius: 3px;
    color: #d8ccb8;
    text-decoration: none;
    font-size: 0.78rem;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: inherit;
}
.lib-action-btn:hover { background: rgba(139,26,26,0.25); border-color: rgba(201,168,76,0.55); color: #fff; }
.lib-action-btn i { font-size: 0.85rem; }
.lib-action-btn.primary { background: rgba(139,26,26,0.35); border-color: rgba(201,168,76,0.5); }

.lib-translations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(139,26,26,0.18);
}
.lib-lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(139,26,26,0.12);
    border: 1px solid rgba(139,26,26,0.3);
    color: #d8ccb8;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lib-lang-chip:hover { background: rgba(201,168,76,0.18); border-color: rgba(201,168,76,0.5); }
.lib-lang-chip.pending { opacity: 0.55; pointer-events: none; }

.lib-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--accent-gold, #c9a84c);
    letter-spacing: 0.08em;
    margin: 2.5rem 0 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.lib-section-title.red { color: #e07a7a; border-bottom-color: rgba(192,57,43,0.35); }
.lib-section-title i { font-size: 0.95rem; opacity: 0.8; }
.lib-section-desc { color: rgba(200,185,165,0.6); font-size: 0.85rem; margin-bottom: 1rem; }
.lib-section-warning {
    background: rgba(192,57,43,0.08);
    border-left: 3px solid #c0392b;
    padding: 0.7rem 1rem;
    color: #e07a7a;
    font-size: 0.82rem;
    border-radius: 0 3px 3px 0;
    margin-bottom: 1rem;
}

/* ---------- AI search panel ---------- */
.ai-panel {
    background: rgba(8,6,6,0.85);
    border: 1px solid rgba(139,26,26,0.3);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ai-input-row { display: flex; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ai-input {
    flex: 1 1 280px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(139,26,26,0.35);
    color: #e8dcc8;
    padding: 0.7rem 0.95rem;
    font-family: inherit;
    border-radius: 3px;
    font-size: 0.9rem;
}
.ai-suggestion {
    background: rgba(10,8,8,0.7);
    border: 1px solid rgba(139,26,26,0.22);
    border-radius: 3px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.7rem;
    transition: border-color 0.2s;
}
.ai-suggestion:hover { border-color: rgba(201,168,76,0.45); }
.ai-suggestion h4 { font-family: 'Cinzel', serif; color: #e8dcc8; margin: 0 0 0.25rem; font-size: 1rem; }
.ai-suggestion .ai-meta { font-size: 0.72rem; color: rgba(201,168,76,0.75); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.ai-suggestion p { color: rgba(200,185,165,0.65); font-size: 0.85rem; line-height: 1.7; margin: 0 0 0.7rem; }
.ai-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(201,168,76,0.7);
    font-style: italic;
    font-size: 0.9rem;
}
.ai-loading i { margin-right: 0.5rem; animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin extra tabs styling ---------- */
.admin-mini-card {
    background: rgba(10,8,8,0.7);
    border: 1px solid rgba(139,26,26,0.22);
    border-radius: 3px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.admin-mini-card h5 { margin: 0 0 0.2rem; font-family: 'Cinzel', serif; color: #e8dcc8; font-size: 0.95rem; }
.admin-mini-card span { font-size: 0.75rem; color: rgba(200,185,165,0.55); }

/* ---------- Temple imagery overrides (variety) ---------- */
.temple-chamber-bg-1 { background-image: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=900&q=60') !important; }
.temple-chamber-bg-2 { background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=900&q=60') !important; }
.temple-chamber-bg-3 { background-image: url('https://images.unsplash.com/photo-1502134249126-9f3755a50d78?auto=format&fit=crop&w=900&q=60') !important; }
.temple-chamber-bg-4 { background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=900&q=60') !important; }
.temple-chamber-bg-5 { background-image: url('https://images.unsplash.com/photo-1455218873509-8097305ee378?auto=format&fit=crop&w=900&q=60') !important; }
.temple-chamber-bg-6 { background-image: url('https://images.unsplash.com/photo-1518049362265-d5b2a6467637?auto=format&fit=crop&w=900&q=60') !important; }

.temple-hero-bg {
    background-image:
        linear-gradient(rgba(5,5,5,0.55), rgba(5,5,5,0.85)),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=2000&q=70') !important;
    background-size: cover !important;
    background-position: center 40% !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .library-toolbar { flex-direction: column; align-items: stretch; }
    .library-count { margin-left: 0; }
}
