@import url("/css/nav.css");

/* ============================================================
   SHADOWCON — TEXTURED BLACK + SOFT GOLD THEME
   ============================================================ */

/* ---------------------------
   GLOBAL BASE
   --------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 100px; /* match nav height */
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 60px; /* adjust between 80–120px depending on nav height */
    background: #0b0b0b; /* deep black */
    color: #e2dfd7; /* bone text */
    font-family: "Merriweather", serif;
    display: flex;
    flex-direction: column;
}

/* Textured black background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.04), transparent 60%),
        linear-gradient(135deg, rgba(255,255,255,0.03), transparent),
        linear-gradient(45deg, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
    z-index: -1;
}

/* ---------------------------
   TYPOGRAPHY
   --------------------------- */

h1, h2, h3, h4 {
    font-family: "Cinzel", serif;
    color: #c7a96b; /* soft gold */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0;
}

p, li {
    font-family: "Merriweather", serif;
    color: #e2dfd7; /* bone */
    line-height: 1.6;
}

a {
    font-family: "Cinzel", serif;
    color: #c7a96b; /* soft gold */
}

/* ---------------------------
   LAYOUT WRAPPER CONTENT
   --------------------------- */

.header {
    padding: 40px 0 00px;
    text-align: center;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    position: relative;
    flex: 1;
}

.content h1 {
    text-align: center;
    margin: 0 auto 20px auto;
    max-width: 600px;
}

.content::before {
    content: "";
    display: block;
    height: 100px; /* same as scroll-margin-top */
    margin-top: -100px;
}

/* ---------------------------
   LOGO
   --------------------------- */

.logo {
    max-width: 320px;
    height: auto;
    filter: none;
    transition: none;
}

.logo-text {
    max-width: auto;
    height: 120px;
    filter: none;
    transition: none;
}

.logo:hover {
    transform: none;
    filter: none;
}

/* ---------------------------
   RESPONSIVE
   --------------------------- */

@media (max-width: 768px) {
    .content {
        padding: 40px 14px 50px;
    }

    .card {
        padding: 18px 20px;
    }

    .gallery {
        column-count: 1;
    }

}

@media (max-width: 600px) {
    .lore-grid {
        grid-template-columns: 1fr !important;
    }

    .lore-card {
        flex-direction: row;      /* keep icon on the left */
        align-items: flex-start;  /* allow text to stack naturally */
        text-align: left;
    }

    .lore-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;       /* slightly tighter spacing */
    }

    .lore-text {
        flex: 1;                  /* take full remaining width */
        display: flex;
        flex-direction: column;   /* title above description */
    }

    .lore-text h3 {
        flex: 1;
        font-size: 1.1rem;
    }

    .lore-text p {
        font-size: 0.9rem;
    }

    .parchment {
        padding: 24px;
        margin: 20px auto;
    }
}


/* ---------------------------
   SECTION TITLES
   --------------------------- */

.section-title {
    font-family: "Cinzel", serif;
    font-size: 2rem;
    color: #c7a96b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 160px;
    height: 3px;
    background: #c7a96b;
}

/* ---------------------------
   LAYOUT AIDS
   --------------------------- */

.three-image-row {
    display: flex;
    justify-content: center;      /* centre the whole row */
    gap: 20px;                    /* even spacing between images */
    margin: 40px auto;            /* centre the container itself */
    width: fit-content;           /* shrink-wrap to images + gaps */
}

.three-image-row img {
    width: auto;                 /* or whatever size you want */
    height: 100px;
    display: block;
}


/* ---------------------------
   CARDS
   --------------------------- */

.card {
    background: #111;
    border: 1px solid #c7a96b;
    padding: 22px 26px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 0 14px rgba(0,0,0,0.7);
}

/* ---------------------------
   BUTTONS
   --------------------------- */

.btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #c7a96b;
    background: #0f0f0f;
    color: #e2dfd7;
    font-family: "Cinzel", serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn:hover {
    background: #1a1a1a;
    border-color: #a88952;
    color: #c7a96b;
}

/* ---------------------------
   DIVIDERS
   --------------------------- */

.divider {
    height: 3px;
    width: 100%;
    background: #c7a96b;
    margin: 30px 0;
}

.section-divider {
    width: 90%;
    height: 1px;
    margin: 40px auto;
    background: #c7a96b;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: "✦";
    position: absolute;
    top: -10px;
    color: #c7a96b;
    font-size: 1rem;
}

.section-divider::before {
    left: -20px;
}

.section-divider::after {
    right: -20px;
}

/* ---------------------------
   TABLES
   --------------------------- */

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th {
    background: #1a1a1a;
    color: #c7a96b;
    padding: 12px;
    border-bottom: 2px solid #c7a96b;
    font-family: "Cinzel", serif;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #444;
    color: #e2dfd7;
}

/* ---------------------------
   FOOTER
   --------------------------- */

.footer {
    text-align: center;
    padding: 18px 10px 24px;
    border-top: 1px solid rgba(80, 80, 80, 0.7);
    font-size: 0.85rem;
    color: #888;
    background: #0f0f0f;
    width: 100%
}

/* ---------------------------
   GALLERY
   --------------------------- */

.gallery {
    column-count: 3;
    column-gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.gallery img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 2px solid rgba(199,169,107,0.25);
    box-shadow: 0 0 14px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    border-color: #c7a96b;
    transform: scale(1.02);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gallery-modal-inner img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: auto;
    border: 3px solid #c7a96b;
    box-shadow: 0 0 20px rgba(199,169,107,0.4);
}

.gallery-caption {
    margin-top: 12px;
    text-align: center;
    font-family: "Merriweather", serif;
    color: #e2dfd7; /* bone text */
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: #c7a96b; /* soft gold */
}

.gallery-caption::before {
    content: "";
    display: block;
    width: 40%;
    height: 2px;
    background: rgba(199,169,107,0.3);
    margin: 0 auto 10px auto;
}

.gallery-filters {
    text-align: center;
    margin: 20px auto 30px;
}

.gallery-filters button {
    background: #111;
    border: 1px solid rgba(199,169,107,0.3);
    color: #e2dfd7;
    padding: 8px 16px;
    margin: 0 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.gallery-filters button.active,
.gallery-filters button:hover {
    border-color: #c7a96b;
    color: #c7a96b;
}

.gallery img {
    transition: opacity 0.2s ease;
}

.gallery img[style*="display: none"] {
    opacity: 0;
}

/* ---------------------------
   LORE
   --------------------------- */

.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px auto;
    max-width: 900px;
    width: 100%;
}

.lore-card {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid rgba(199,169,107,0.3);
    color: #e2dfd7;
    padding: 16px 20px;
    text-decoration: none;
    transition: 0.2s ease;
}

.lore-card:hover {
    border-color: #c7a96b;
    color: #c7a96b;
    box-shadow: 0 0 12px rgba(199,169,107,0.4);
}

.lore-icon {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(199,169,107,0.4));
}

.lore-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lore-text h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.lore-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #dcd7c9;
}

.lore-filters {
    text-align: center;
    margin: 20px auto 30px;
}

.lore-filters button {
    background: #111;
    border: 1px solid rgba(199,169,107,0.3);
    color: #e2dfd7;
    padding: 8px 16px;
    margin: 0 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.lore-filters button.active,
.lore-filters button:hover {
    border-color: #c7a96b;
    color: #c7a96b;
}

.parchment {
    background:
        radial-gradient(circle at 20% 0%, rgba(0,0,0,0.25), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(0,0,0,0.25), transparent 55%),
        linear-gradient(#f5ecd8, #efe1c4);
    border: 2px solid #c7a96b;
    border-radius: 6px;
    padding: 40px;
    max-width: 800px;
    margin: 40px auto;
    color: #2b1f0f;
    font-family: "Crimson Text", serif;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.parchment p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: black;
}

.parchment li {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: black;
}

.parchment h1, .parchment h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #3a2a12;
}

.back-button {
    display: block;
    text-align: center;
    margin: 20px auto;
    color: #c7a96b;
    text-decoration: none;
    font-size: 1.2rem;
}

.back-button:hover {
    text-decoration: underline;
}

/* ---------------------------
   VIDEO
   --------------------------- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.video-card {
    background: #111;
    border: 1px solid rgba(199,169,107,0.3);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(0,0,0,0.7);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Mobile: collapse to 1 column */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-filters {
    text-align: center;
    margin: 20px auto 30px;
}

.video-filters button {
    background: #111;
    border: 1px solid rgba(199,169,107,0.3);
    color: #e2dfd7;
    padding: 8px 16px;
    margin: 0 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.video-filters button.active,
.video-filters button:hover {
    border-color: #c7a96b;
    color: #c7a96b;
}

.faq-container {
    margin-bottom: 20px;
}

.faq-toggle {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid rgba(199,169,107,0.4);
    color: #c7a96b;
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-toggle:hover {
    border-color: #c7a96b;
    color: #e2dfd7;
}

.faq-icon {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg); /* + becomes × */
}

.faq-content {
    margin-top: 10px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
