﻿/* =========================================================
   ArcaneBinder — components.css (Reusable components)
   ========================================================= */

/* ---- Navbar ---- */
.navbar {
    background: #0c0e12;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 96px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar .nav-link {
    color: rgba(230,230,230,0.85);
}

.navbar .nav-link:hover {
    color: #ffffff;
}

.navbar .navbar-brand:hover {
    color: #ffffff;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.25);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Brand (icon + wordmark) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    height: 72px; /* desktop */
    width: auto;
    image-rendering: pixelated;
}

@media (max-width: 576px) {
    .brand-icon {
        height: 48px;
    }
}

.brand-wordmark {
    font-family: "Cinzel", serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.35rem;
    line-height: 1;
    color: #e6e6e6;
    text-decoration: none;
}

.navbar-brand:hover .brand-wordmark {
    color: #ffffff;
}

/* ---- Buttons ---- */
.cta-button,
button,
input[type="submit"],
.btn-brand {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.1rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(124,108,255,0.18), 0 0 0 1px rgba(124,108,255,0.12);
}

    .cta-button:hover,
    button:hover,
    input[type="submit"]:hover,
    .btn-brand:hover {
        filter: brightness(1.06);
        transform: translateY(-1px);
        transition: 140ms ease;
    }

/* If you want the nav CTA darker text */
.btn-brand {
    color: #0f1115;
    font-weight: 600;
}

/* ---- Panels / cards ---- */
.ab-panel {
    background: rgba(21,25,34,0.75);
    border: 1px solid rgba(42,46,54,0.9);
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(124,108,255,0.05);
    backdrop-filter: blur(6px);
}

/* ---- Forms ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    background: rgba(12,14,18,0.85);
    color: var(--fg);
    border: 1px solid rgba(42,46,54,0.95);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    width: 100%;
    max-width: 720px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

textarea {
    min-height: 140px;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-weight: 600;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(124,108,255,0.6);
    box-shadow: 0 0 0 0.2rem rgba(124,108,255,0.20), 0 0 0 0.35rem rgba(35,213,197,0.10);
}

/* Validation */
.field-validation-error,
.validation-summary-errors {
    color: #ff6b6b;
}

/* ---- Tables ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-weight: 700;
}

/* ---- Footer ---- */
/* Force footer to be NORMAL FLOW even if template/css isolation tries to override */
footer.footer {
    background: #0c0e12;
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    flex-shrink: 0;
    margin-top: auto; /* ensures bottom on short pages in flex layout */
}

footer.footer,
footer.footer a {
    color: var(--muted);
}

footer.footer a:hover {
    color: var(--fg);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.contact-details li {
    margin-bottom: 0.5rem;
}

.hp-field {
    display: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    vertical-align: top;
}

.admin-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.admin-filters input, .admin-filters select {
    padding: 0.5rem;
}

.admin-kv {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.admin-kv li {
    margin: 0.25rem 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.photo-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq h1 {
    margin-bottom: 2rem;
}

.faq details {
    background: #1a1d23;
    border: 1px solid #2a2e36;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

.faq summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(180deg);
}

.faq details p {
    margin-top: 0.75rem;
    color: #e6e6e6;
}

.faq details p + p {
    margin-top: 0.5rem;
}