html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ======= SITE THEME ======= */

/* COLOURS */
:root {
    --theme-orange: #d14f00;
    --theme-black: #000000;
    --theme-white: #ffffff;
    --theme-orange-glow: #ff6a00;
}

/* GLOBAL */
body {
    background: radial-gradient(circle at 20% 20%, rgba(255,111,0,0.07), transparent), radial-gradient(circle at 80% 60%, rgba(255,111,0,0.05), transparent), var(--theme-black);
    color: var(--theme-white);
    font-family: sans-serif;
    overflow-x: hidden;
}

/* ==============================================
   HERO & WHITEBOARD LAYOUT (BIG COVER VERSION)
   ============================================== */

/* 1. The Wrapper: Forces layout to go Edge-to-Edge */
.hero-full-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
}

/* 2. Flex Container Setup */
.hero-split-container {
    display: flex;
    flex-direction: column-reverse; /* Mobile: Whiteboard on bottom */
    gap: 40px;
    width: 100%;
    padding: 20px;
}

/* 3. Right Side: Massive Whiteboard */
.whiteboard-image {
    width: 100%;
    height: auto;
    border: 3px solid var(--theme-orange);
    border-radius: 8px;
    box-shadow: 0 0 25px var(--theme-orange-glow);
    display: block;
}

/* 4. Left Side: Text & Cover styling (Mobile Defaults) */
.hero-left {
    text-align: center;
}

.hero-image {
    max-width: 220px;
    border: 3px solid var(--theme-orange);
    box-shadow: 0 0 30px var(--theme-orange-glow);
    border-radius: 6px;
    margin-bottom: 25px;
}

.home-title {
    font-size: 2.5rem;
    color: var(--theme-orange);
    margin-bottom: 10px;
}

.home-author {
    font-size: 1.2rem;
    color: var(--theme-white);
    opacity: 0.8;
    margin-bottom: 20px;
}

.home-intro {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--theme-white);
    margin-bottom: 30px;
}

/* Value Section */
.value-section-left {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #333;
}

.value-title {
    color: var(--theme-orange);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.value-text {
    color: var(--theme-white);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ==============================================
   DESKTOP VIEW (30% / 70% Split for Big Cover)
   ============================================== */

@media (min-width: 1200px) {
    .hero-split-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0;
    }

    /* LEFT SIDE: Increased to 30% to fit the big cover */
    .hero-left {
        width: 30%;
        padding: 40px 50px 40px 40px;
        position: sticky;
        top: 0;
        text-align: left;
    }

    /* SCALED UP: Book Cover (Doubled Size) */
    .hero-image {
        max-width: 500px; /* Increased from 280px to 500px */
        border-width: 4px;
        margin-bottom: 35px;
    }

    /* SCALED UP: Typography */
    .home-title {
        text-align: left;
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .home-author {
        text-align: left;
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .home-intro {
        text-align: left;
        font-size: 1.5rem;
        line-height: 1.6;
        margin-left: 0;
    }

    .value-section-left {
        margin-top: 60px;
    }

    .value-title {
        font-size: 1.8rem;
    }

    .value-text {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    /* RIGHT SIDE: Reduced slightly to 70% */
    .hero-right {
        width: 70%;
        padding-right: 20px;
    }

    .whiteboard-image {
        box-shadow: -5px 5px 40px rgba(0,0,0,0.6);
    }
}

/* UTILITY */
.btn-orange {
    display: inline-block;
    padding: 12px 22px;
    background-color: var(--theme-orange);
    color: var(--theme-black);
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-orange:hover {
        background-color: var(--theme-white);
        color: var(--theme-black);
    }

/* ===== BOOK PAGE STYLING ===== */

.book-container,
.excerpt-container {
    max-width: 750px;
    margin: 60px auto;
    padding: 20px;
    background-color: var(--theme-black);
    border: 2px solid var(--theme-orange);
    border-radius: 8px;
    box-shadow: 0 0 25px var(--theme-orange-glow);
}

.book-title,
.excerpt-title {
    color: var(--theme-orange);
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 10px;
}

.book-author {
    text-align: center;
    color: var(--theme-white);
    opacity: 0.8;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.book-description,
.excerpt-text {
    color: var(--theme-white);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ===== QUIZ STYLING ===== */

.quiz-container,
.result-container {
    max-width: 750px;
    margin: 60px auto;
    padding: 25px;
    border: 2px solid var(--theme-orange);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--theme-orange-glow);
    background-color: var(--theme-black);
}

.quiz-title,
.result-title {
    color: var(--theme-orange);
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.quiz-intro {
    color: var(--theme-white);
    opacity: 0.9;
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.quiz-question {
    margin-bottom: 30px;
}

    .quiz-question label {
        color: var(--theme-white);
        font-size: 1.1rem;
    }

.quiz-options input {
    margin-right: 5px;
    margin-left: 10px;
}

/* ===== ENHANCED SOCIALS PAGE ===== */

.socials-wrapper {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
    padding: 20px;
}

.socials-title {
    font-size: 2.6rem;
    margin-bottom: 45px;
    color: var(--theme-orange);
    text-shadow: 0 0 10px var(--theme-orange-glow);
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 35px;
    justify-items: center;
}

.social-item {
    width: 180px;
    background-color: var(--theme-black);
    border: 2px solid var(--theme-orange);
    border-radius: 12px;
    padding: 22px 12px;
    text-decoration: none;
    color: var(--theme-white);
    transition: 0.25s;
    box-shadow: 0 0 18px var(--theme-orange-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

    .social-item:hover {
        background-color: var(--theme-orange);
        color: var(--theme-black);
        transform: translateY(3px);
        box-shadow: 0 0 28px var(--theme-orange-glow);
    }

.social-icon svg {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
}

.social-label {
    font-size: 1rem;
    margin-top: 6px;
    font-weight: 600;
    text-align: center;
}

.social-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--theme-orange);
    color: var(--theme-black);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-shadow: 0 0 12px var(--theme-orange-glow);
}

    .social-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: var(--theme-orange) transparent transparent transparent;
    }

.social-item:hover .social-tooltip {
    opacity: 1;
}

/* ===== DONATIONS UPGRADE ===== */

.donate-container {
    text-align: center;
    padding: 20px;
    max-width: 1100px;
}

.donate-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--theme-orange);
    text-shadow: 0 0 15px var(--theme-orange-glow);
}

.donate-intro {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 750px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    justify-items: center;
}

.donate-item {
    background-color: var(--theme-black);
    border: 2px solid var(--theme-orange);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 22px var(--theme-orange-glow);
    width: 100%;
    max-width: 280px;
    text-align: center;
    transition: 0.3s ease;
}

.donate-animate:hover {
    transform: translateY(4px);
    box-shadow: 0 0 30px var(--theme-orange-glow);
}

.donate-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: var(--theme-orange);
    text-shadow: 0 0 10px var(--theme-orange-glow);
}

.donate-name {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--theme-orange);
}

.qr-frame {
    padding: 10px;
    border: 2px solid var(--theme-orange);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--theme-orange-glow);
    margin-bottom: 15px;
    background-color: black;
}

.donate-qr {
    width: 160px;
    height: 160px;
    border-radius: 4px;
}

.donate-wallet {
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 12px;
    opacity: 0.95;
}

.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--theme-orange);
    color: var(--theme-black);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    box-shadow: 0 0 18px var(--theme-orange-glow);
}

    .copy-toast.show {
        opacity: 1;
    }

/* ===== NAVBAR OVERHAUL ===== */

.custom-nav {
    background-color: var(--theme-black);
    border-bottom: 3px solid var(--theme-orange);
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: 0 0 15px var(--theme-orange-glow);
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-orange) !important;
    text-shadow: 0 0 12px var(--theme-orange-glow);
    padding-left: 6px;
}

.navbar-links ul {
    display: flex;
    gap: 22px;
}

.nav-link {
    color: var(--theme-white) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.25s ease;
}

    .nav-link:hover {
        color: var(--theme-orange) !important;
        text-shadow: 0 0 10px var(--theme-orange-glow);
        transform: translateY(2px);
    }

    .nav-link.active {
        color: var(--theme-orange) !important;
        text-shadow: 0 0 14px var(--theme-orange-glow);
    }

/* ===== Mobile Toggler ===== */

.nav-toggle {
    border: 2px solid var(--theme-orange);
    border-radius: 6px;
    padding: 4px;
}

.nav-toggle-icon {
    filter: brightness(0) invert(1);
}

.nav-toggle:hover {
    background-color: var(--theme-orange);
}

    .nav-toggle:hover .nav-toggle-icon {
        filter: brightness(0);
    }

/* ===== PRIVACY PAGE ===== */

.privacy-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    background-color: var(--theme-black);
    border: 2px solid var(--theme-orange);
    border-radius: 10px;
    box-shadow: 0 0 25px var(--theme-orange-glow);
}

.privacy-title {
    color: var(--theme-orange);
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 12px var(--theme-orange-glow);
}

.privacy-updated {
    text-align: center;
    opacity: 0.8;
    font-size: 1rem;
    margin-bottom: 25px;
}

.privacy-heading {
    color: var(--theme-orange);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.privacy-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--theme-white);
}

.privacy-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

    .privacy-list li {
        margin-bottom: 8px;
        line-height: 1.5;
    }

.privacy-contact {
    text-align: center;
    font-size: 1.2rem;
    color: var(--theme-orange);
    margin: 15px 0 25px 0;
    text-shadow: 0 0 10px var(--theme-orange-glow);
}

.image-extras {
    text-align: center;
    padding: 3rem 1rem;
}

.extras-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.extras-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.extras-item {
    max-width: 300px;
}

.extras-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.extras-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* === COMING SOON STYLING === */
.coming-soon-container {
    margin-bottom: 25px;
    display: inline-block;
    border: 1px solid var(--theme-orange);
    border-radius: 4px;
    background: rgba(209, 79, 0, 0.1); /* Low opacity orange background */
    overflow: hidden;
}

.cs-badge {
    background-color: var(--theme-orange);
    color: var(--theme-black);
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
}

.cs-date {
    color: var(--theme-orange);
    padding: 5px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* === IMAGE ROTATION TRANSITION === */
.whiteboard-image {
    /* Keep your existing styles here, but ADD this line: */
    transition: opacity 0.5s ease-in-out;
    opacity: 1; /* Ensure default state is visible */
}
/* === AI REVIEWS PAGE === */

/* Customizing the Tabs */
.ai-tab-link {
    background-color: transparent !important;
    color: var(--theme-white) !important;
    border: 1px solid var(--theme-orange);
    margin: 0 5px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .ai-tab-link:hover {
        box-shadow: 0 0 15px var(--theme-orange-glow);
    }

    .ai-tab-link.active {
        background-color: var(--theme-orange) !important;
        color: var(--theme-black) !important;
        box-shadow: 0 0 20px var(--theme-orange-glow);
    }

/* The Main Review Card */
.review-card {
    background-color: var(--theme-black);
    border: 2px solid var(--theme-orange);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(209, 79, 0, 0.15);
    min-height: 400px;
    animation: fadeIn 0.5s ease-in-out;
}

/* The "Identity File" on the right */
.identity-dossier {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-left: 4px solid var(--theme-orange);
    border-radius: 0 8px 8px 0;
    height: 100%;
}

.dossier-header {
    color: var(--theme-orange);
    font-family: monospace; /* Typewriter look */
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile tweak */
@media (max-width: 768px) {
    .identity-dossier {
        border-left: none;
        border-top: 4px solid var(--theme-orange);
        border-radius: 0 0 8px 8px;
    }
}

/* === COMPASS GRID STYLING === */
.compass-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    margin: 40px auto;
    font-family: monospace;
    /* KEEP THIS: Padding reserves space for the labels */
    padding: 35px;
    /* KEEP THIS: Sets the background color of the padding area */
    background-color: var(--theme-black);
}

.compass-board {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border: 2px solid var(--theme-orange);
    position: relative;
}

/* Quadrant Coloring */
.quadrant {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    opacity: 0.8;
    transition: 0.3s;
}

.q-top-left {
    background-color: #2b2b2b;
    color: #aaa;
}
/* Dark Grey */
.q-top-right {
    background-color: #3d3d3d;
    color: #fff;
}
/* Light Grey */
.q-bottom-left {
    background-color: #1a1a1a;
    color: var(--theme-orange);
}
/* Black/Orange */
.q-bottom-right {
    background-color: #000000;
    color: #666;
}
/* Pure Black */

.quadrant:hover {
    opacity: 1;
}

.quad-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.quad-desc {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Axis Lines */
.axis-line-x {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--theme-orange);
    z-index: 2;
}

.axis-line-y {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--theme-orange);
    z-index: 2;
}

/* The Dot */
.player-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--theme-white);
    border: 2px solid var(--theme-black);
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Centers the dot on the coordinate */
    z-index: 10;
    box-shadow: 0 0 10px white;
}

/* Labels around the outside */
.axis-label {
    position: absolute;
    color: var(--theme-orange);
    font-weight: bold;
    font-size: 0.85rem;
    text-shadow: 0 0 5px var(--theme-orange-glow);
    z-index: 5;
}

.label-top {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.label-bottom {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.label-left {
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.label-right {
    right: -25px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
}

/* Quiz Inputs specific styling */
.quiz-options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

    .quiz-options span {
        font-size: 0.85rem;
        color: #aaa;
    }

    .quiz-options input {
        accent-color: var(--theme-orange);
        transform: scale(1.2);
    }

/* Ensure the dot sits on top of everything */
.player-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--theme-white);
    border: 2px solid var(--theme-black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 100; /* Increased z-index */
    box-shadow: 0 0 10px white;
    pointer-events: none; /* Allows clicking through it if needed */
}

/* The Pulse Animation */
.dot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--theme-orange);
    opacity: 0.6;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}