/* =========================================================
   NoBoundsGM — FANTASY / MARKETING UI (DESKTOP)
   Scope: Landing pages, marketing sections, shared visuals
========================================================= */

/* =========================================================
   GLOBAL BASE
========================================================= */

body {
    font-family: 'Caudex', serif;
    color: #2b1d14;
    min-height: 100vh;

    /* Parchment + spellbook sidebars */
    background-color: #f7f0d8;
    background-image:
        url('../assets/bg/side-spellbook.png'),
        url('../assets/bg/side-spellbook.png'),
        url('../assets/bg/parchment-bg.png');
    background-repeat: repeat-y, repeat-y, repeat;
    background-position: left top, right top, center;
    background-size: 240px auto, 240px auto, auto;
}

/* Center content between sidebars */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    background: #3a2e22;
    border-bottom: 4px solid #1e140d;
    padding: 0.2rem 0;
    min-height: 48px;
}

.navbar-brand {
    font-family: 'Uncial Antiqua', serif;
    font-size: 1.45rem;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #f7e7c1;
}

.nav-link {
    color: #f2d7ac;
    padding: 0.15rem 0;
}

.nav-link:hover {
    color: #fff3d4;
}

.navbar-toggler {
    padding: 0.15rem 0.35rem;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-fantasy {
    font-family: 'Caudex', serif;
    font-size: 1.2rem;
    padding: 0.6rem 1.6rem;
    border-radius: 8px;

    background: #3d2415;
    color: #f9e4c9;
    border: 2px solid #b5926b;
}

.btn-fantasy:hover {
    background: #5a3720;
    color: #fff;
    border-color: #d4b48e;
}

/* =========================================================
   HERO — FULL WIDTH CINEMATIC
========================================================= */

.hero {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    background: #0b0f17;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Slideshow layers */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    animation: heroFade 37s infinite;
    filter: brightness(1.08) contrast(1.05);
}

/* Slide images */
.slide-1 { background-image: url('../assets/images/dice_hand.jpg'); animation-delay: 0s; }
.slide-2 { background-image: url('../assets/images/races.jpg'); animation-delay: 5s; }
.slide-3 { background-image: url('../assets/images/fighting_elf.jpg'); animation-delay: 10s; }
.slide-4 { background-image: url('../assets/images/rogue_dagger.jpg'); animation-delay: 15s; }
.slide-5 { background-image: url('../assets/images/sleeping_dwarf.jpg'); animation-delay: 20s; }
.slide-6 { background-image: url('../assets/images/tavern_scene.jpg'); animation-delay: 25s; }
.slide-7 { background-image: url('../assets/images/crypt.jpg'); animation-delay: 30s; }
.slide-8 { background-image: url('../assets/images/cavern.jpg'); animation-delay: 35s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    30%  { opacity: 1; }
    40%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(10,10,20,0.75) 0%,
        rgba(10,10,20,0.45) 35%,
        rgba(10,10,20,0.15) 65%,
        rgba(10,10,20,0.05) 100%
    );
    pointer-events: none;
}

/* =========================================================
   HERO SPLIT LAYOUT
========================================================= */

.hero-split {
    display: flex;
}

/* LEFT */
.hero-left {
    width: 42%;
    padding: clamp(3rem, 6vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f7e7c1;
    z-index: 2;
}

.hero-title {
    font-family: 'Uncial Antiqua', serif;
    font-size: clamp(2.1rem, 3.8vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-title span {
    color: #c9a24d;
}

.hero-context {
    margin: 1rem 0 2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(201,162,77,0.6);
    font-style: italic;
    font-size: 1.1rem;
    color: #e6d19a;
    min-height: 1.6em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* RIGHT */
.hero-right {
    position: relative;
    width: 58%;
    overflow: hidden;
}

.hero-right .hero-slides,
.hero-right .hero-slide,
.hero-right .hero-overlay {
    position: absolute;
    inset: 0;
}

/* =========================================================
   ENGINE / FEATURE SECTIONS
========================================================= */

.engine-section {
    margin-top: 4rem;
}

.engine-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem;

    border-radius: 16px;
    border: 3px solid #b49a71;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);

    background-color: rgba(255,248,220,0.94);
    background-image: url('../assets/bg/subtle-runes.png');
    background-size: 420px;
    background-blend-mode: multiply;
}

/* Image */
.engine-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
}

/* Content */
.engine-content h2 {
    font-family: 'Uncial Antiqua', serif;
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    color: #3b2617;
}

.engine-intro {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #3e2b1c;
    opacity: 0.9;
}

.engine-features {
    display: grid;
    gap: 1.4rem;
}

.engine-feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: #2b1d14;
}

.engine-feature p {
    margin: 0;
    line-height: 1.5;
    color: #3a2a1b;
}

/* Reverse layout */
.engine-panel.reverse {
    grid-template-columns: 2fr 1fr;
}

.engine-panel.reverse .engine-media {
    order: 2;
}

.engine-panel.reverse .engine-content {
    order: 1;
}

/* Fix for sticky bar */
.navbar {
    background: #3a2e22;
    z-index: 1030; /* above hero */
}

/* dashboard - char sheet UX */
@media (max-width: 768px) {
  .table td {
    white-space: nowrap;
  }
}
