/* --- GLOBAL THEME SETTINGS --- */
:root {
    --gladiator-gold: #D4AF37;
    --sovereign-gold: #B8860B;
    --deep-black: #121212;
    --paper-grey: #f9f9f9;
    --border-grey: #e0e0e0;
}

body, .report-container {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #000;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* If available, otherwise standard sans-serif */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HEADER & BRANDING --- */
header {
    background: #fff;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid var(--gladiator-gold);
}

.dossier-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* --- MAIN CONTAINER --- */
.container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-grey);
}

/* --- PAGE TITLES --- */
.audit-header {
    text-align: center;
    border-bottom: 1px solid var(--gladiator-gold);
    padding-bottom: 20px;
    margin-bottom: 40px;
}


.audit-header h3 {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1.4rem;
    color: var(--sovereign-gold);
    margin-bottom: 10px;
}

.audit-header h2 {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.9rem;
    color: var(--sovereign-gold);
    margin-bottom: 10px;
}

.audit-header h1 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--deep-black);
    text-transform: uppercase;
}

/* --- TEXT BLOCKS --- */
.intro-text {
    font-size: 1.1rem;
    color: #2F2300;
    margin-bottom: 30px;
    margin-top: 40px;
}

.template-box {
    background: #f0f0f0;
    border-left: 5px solid var(--gladiator-gold);
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #525F25;
    font-family: 'Arial', sans serif;
}

/* --- INTRO PAGE GRID (The 4 Forces) --- */
.forces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.force-card {
    padding: 20px;
    border: 1px solid var(--border-grey);
    font-family: Arial, sans-serif;
}

.force-card h3 {
    margin: 0 0 10px 0;
    color: var(--sovereign-gold);
    font-size: 1rem;
    text-transform: uppercase;
}

/* --- HOLOGRAPHIC IMAGE EFFECT --- */
.hologram-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 40px auto;
    cursor: pointer;
}

.hologram-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--gladiator-gold);
    transition: opacity 0.6s ease-in-out;
}

.hologram-reveal {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.hologram-container:hover .hologram-reveal {
    opacity: 1;
}

.hologram-container:hover .hologram-image {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* --- FOOTER & BUTTONS --- */
.strategic-footer {
    border-top: 1px solid var(--border-grey);
    padding-top: 30px;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    background: #55002B;
    color: #fff;
    border-radius: 18px;
    padding: 18px 35px;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid var(--gladiator-gold);
    transition: 0.3s;
}

.cta-btn .gold-text { color: var(--gladiator-gold); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 650px) {
    .container { padding: 30px; margin: 10px; }
    .forces-grid { grid-template-columns: 1fr; }
}




/* --- WIKIPEDIA-STYLE PREVIEW BOX SYSTEM --- */

/* --- UPDATED HORIZONTAL PANEL LAYOUT --- */
.match-grid {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between horizontal rows */
    margin-top: 10px; /* Reduced to bring it closer to the title */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.match-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfd;
    padding: 15px 25px;
    border-radius: 4px;
    border: 1px solid var(--border-grey);
    text-align: left; /* Text is now left-aligned for readability */
}

/* Character Info Container */
.match-info {
    flex: 2;
    padding-right: 20px;
}

/* Fix the Oversized Match Header */
.match-card h4 {
    margin: 0;
    font-size: 1rem; /* Normal text size */
    font-weight: bold; /* Replaces <strong> logic */
    color: #0645ad;
    text-decoration: underline;
}

/* Spacing Fix: Tactical Assets to Tactical Warning */
.match-assets ul {
    margin-bottom: 5px; /* Tighter gap to the warning */
}

/* Spacing Fix: Tactical Warning to Strategic Matches */
.tactical-warning-block {
    margin-bottom: 40px; /* Creates the separation you requested */
}

.section-title {
    margin-top: 20px; /* Pulls the grid title down slightly */
}



/* Enhanced Wiki-style Preview with Image */
.preview-box {
    visibility: hidden;
    width: 450px; 
    max-width: 90vw;
    background-color: #ffffff;
    color: #333;
    border: 1px solid var(--gladiator-gold);
    border-radius: 8px;
    padding: 0; 
    position: absolute;
    z-index: 9999; 
    
    /* Position it right below the text line */
    top: 25px;  
    left: 0;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex; 
    overflow: hidden; 
    pointer-events: auto; 
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* THE INVISIBLE MOUSE BRIDGE */
/* This builds a physical, invisible bridge above the box to catch the mouse */
.preview-box::before {
    content: "";
    position: absolute;
    top: -25px; /* Reaches up to touch the text link */
    left: 0;
    width: 100%;
    height: 25px; /* The height of the gap */
    background: transparent; /* Totally invisible */
}

/* HOVER TRIGGER */
.link-container:hover .preview-box,
.wiki-preview:hover .preview-box {
    visibility: visible;
    opacity: 1;
}

/* PARENT LINK STYLING */
.wiki-preview {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline; 
}



/* Restrict protagonist photos to 150px in the preview cell */
.preview-img {
    width: 150px; 
    height: auto;
    object-fit: cover;
    border-right: 1px solid #eee;
    flex-shrink: 0; /* Prevents the image from being squashed by text */
}

.preview-text {
    padding: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

/* Show popup on hover of the card */
.match-card:hover .preview-box {
    visibility: visible;
    opacity: 1;
}

/* Button & Tag Container */
.match-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Smaller, tighter gold title */
.section-title {
    color: var(--sovereign-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-align: center;
}


@media (min-width: 800px) {
    .match-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 across on desktop */
    }
}



.portal-button {
    display: inline-block;
    margin-top: 22px; 
    padding: 10px 20px;
    background-color: var(--sovereign-gold, #B8860B);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 6px; 
    transition: all 0.3s ease;
}

.portal-button:hover {
    filter: brightness(1.2);
}

.gold-title {
    color: #b8860b; /* Dark Goldenrod */
    font-weight: bold;
    font-size: 1.0rem;
}


.key-link-container {
    text-align: center;
    margin: 40px auto 20px;
}

.key-icon {
    width: 120px; /* Optimal size for the 'symbolic' look */
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

/* Subtle 'glow' effect when the user hovers over the key */
.key-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(184, 134, 11, 0.6));
}





/* --- NEW SPECIFIC PREVIEW FOR HYBRID HUMAN PAGE --- */
.wiki-preview .preview-box {
    display: flex !important;
    flex-direction: row !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 0;
    width: 450px;
    height: auto;
    min-height: 150px;
    background-color: #ffffff;
    border: 1px solid #D4AF37;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* This ensures the hover only triggers for this specific new class */
.wiki-preview:hover .preview-box {
    visibility: visible;
    opacity: 1;
}

/* Force the text wrapping fix, colour, and upright style */
.wiki-preview .preview-text {
    white-space: normal !important;
    display: block;
    padding: 15px;
    flex: 1;
    color: #59002D !important;   /* Your new Indigo colour */
    font-style: normal !important; /* FORCES the text to be regular/upright */
    font-weight: normal;         /* Ensures it isn't bold unless you use <strong> */
}


/* Restores the trigger point for the new wiki-preview class */
.wiki-preview {
    position: relative;
    display: inline-block;
    color: #808000;
    text-decoration: underline dotted; font-weight: bold;
    cursor: help;
}



/* Centering logic for the main page image */
.image-container-custom {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.responsive-img-custom {
    width: 100%;
    max-width: 450px; /* Adjust this to your preferred size */
    height: auto;
    display: block;
    border: 2px solid #D4AF37;
}

.image-container-text {
    color: #806000;
    text-align: center;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 1rem;
}



/* Duplicating image-container-custom for BORDERLESS images */
.image-container-custom2 {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.responsive-img-custom2 {
    width: 100%;
    max-width: 450px; /* Adjust this to your preferred size */
    height: auto;
    display: block;
    border: 0px;
}

.image-container2-text {
    color: #806000;
    text-align: center;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 1rem;
}



/* Theatre Masks image */
.image-container-masks {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.responsive-img-masks {
    width: 100%;
    max-width: 370px; /* Adjust this to your preferred size */
    height: auto;
    display: block;
    border: 0px;
}


/* Battery Depletion head image */
.image-container-battery {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1px 0;
}

.responsive-img-battery {
    width: 100%;
    max-width: 250px; /* Adjust this to your preferred size */
    height: auto;
    display: block;
    border: 0px;
}


/* the 4 coloured Pie-Charts */
.image-disc-piecharts {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1px 0;
}

.responsive-img-piecharts {
    width: 100%;
    max-width: 600px; /* Adjust this to your preferred size */
    height: auto;
    display: block;
    border: 0px;
}



/* ADD THIS TO THE TOP OF YOUR CSS FILE */
* {
    box-sizing: border-box;
}

/* 4 Persons for DISC-Behaviours image */
.briefing-image-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centres children horizontally */
    justify-content: center; /* Centres children vertically if needed */
    margin: 40px auto; /* Centring the container itself */
    width: 100%;
    max-width: 450px; /* Matches the image size to keep text aligned */
}

/* The Image itself */
.responsive-briefing-img {
    display: block;
    width: 100%;       /* Fills the 450px container */
    max-width: 450px;  
    height: auto;
    margin: 0 auto;    /* Extra insurance for centring */
}

/* The Caption Text */
.image-caption {
    margin-top: 12px;
    color: #806000;
    text-align: center;
    font-family: sans-serif;
    font-size: 0.75rem;
    width: 100%;       /* Ensures text takes full width to centre properly */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 480px) {
    .briefing-image-group {
        margin: 20px auto; 
        padding: 0 15px; /* Creates a small "buffer" from the screen edge */
    }
}



/* --- MEMBERS VAULT EXTENSIONS --- */

/* Module Card List */
.module-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.module-card {
    background: #fcfcfc;
    border: 1px solid var(--border-grey);
    border-left: 5px solid var(--sovereign-gold);
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.module-card:hover {
    background: #fff;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.module-number {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--sovereign-gold);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.module-card h3 {
    margin: 0 0 10px 0;
    color: var(--deep-black);
    font-size: 1.2rem;
}

.module-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}

/* Premium Wiki-Insight Color */
.wiki-insight-premium {
    color: #9B0065; /* Teal to distinguish from the standard Khaki */
    text-decoration: underline dotted;
    font-weight: normal;
    cursor: help;
}

/* Download Section Styling */
.vault-download {
    background: #f0f0f0;
    border: 2px dashed var(--sovereign-gold);
    padding: 35px;
    text-align: center;
    margin-top: 50px;
}



/* --- SMART NAVIGATION BUTTON --- */
.nav-footer {
    text-align: center;
    margin: 60px 0 20px;
    padding-top: 40px;
    border-top: 1px solid var(--border-grey);
}

.next-module-btn {
    display: inline-block;
    padding: 18px 45px;
    /* Gold Gradient Sheen */
    background: linear-gradient(135deg, #f7e76d 0%, #916803 100%);
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px; /* Rounded pill shape */
    border: none;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.next-module-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.5);
    filter: brightness(1.1);
}

.next-module-btn:active {
    transform: translateY(1px);
}







/* --- GLOBAL SOVEREIGN FOOTER --- */
footer {
    background-color: #fff;
    border-top: 1px solid var(--gladiator-gold);
    padding: 60px 20px 40px;
    margin-top: 80px;
    text-align: center;
    width: 100%; /* Ensures footer takes full width */
}

.footer-logo-btn {
    display: block;
    margin: 0 auto 30px;
    width: 60px !important; /* Force the size on mobile */
    max-width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-nav a {
    text-decoration: none !important; /* Forces no underline on phone */
    color: #666 !important; /* Forces grey instead of blue link */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--sovereign-gold) !important;
}

.copyright-text {
    margin-top: 40px;
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 1px;
    text-align: center;
}

/* --- SINGLE MOBILE RESPONSIVENESS BLOCK --- */
/* We combine the 600px and 768px into one clean instruction */
@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column !important; /* Stacks links vertically */
        align-items: center !important;
        gap: 10px !important;
    }
    
    .footer-nav a {
        font-size: 0.9rem !important;
        display: block !important;
        padding: 12px 0 !important;
        width: 100%;
        border-bottom: 1px solid #eeeeee; /* Subtle separator */
        text-align: center;
    }

    .footer-nav a:last-child {
        border-bottom: none !important;
    }

    .footer-logo-btn {
        width: 50px !important; /* Slightly smaller for phone */
    }
}

.footer-logo-link {
    text-decoration: none !important;
    display: inline-block;
    margin-bottom: 30px;
}

.footer-next-text {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--sovereign-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -10px; /* Pulls it closer to the logo */
    font-weight: bold;
    transition: letter-spacing 0.3s ease;
}

.footer-logo-link:hover .footer-next-text {
    letter-spacing: 4px; /* Subtle animation on hover */
    color: var(--gladiator-gold);
}




/* Container: Handles centering and the 350px laptop limit */
.battery-gif-wrapper {
    background-color: #000; 
    padding: 15px;
    border: 2px solid #c5a059; 
    border-radius: 8px;
    
    /* Centering and Sizing */
    margin: 40px auto; 
    max-width: 300px; /* Laptop maximum width */
    width: 90%;      /* Fallback for smaller screens */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    box-sizing: border-box; /* Ensures padding doesn't add to the width */
}

/* Image scaling */
.battery-gif-wrapper img {
    width: 100%; 
    height: auto;
    display: block;
}

/* Phone Reduction: Further shrinking for small screens */
@media screen and (max-width: 480px) {
    .battery-gif-wrapper {
        max-width: 250px; /* Smaller footprint on phones */
        margin: 20px auto;
        padding: 10px;
    }
}


/* --- 4-IMAGE LOOPING SLIDESHOW (MOBILE-REMEDIED) --- */
.tiger-slideshow-container {
    max-width: 450px !important;
    width: 100% !important;
    height: 245px !important; /* Forces uniform height constraint */
    margin: 40px auto !important;
    position: relative !important;
    border: 1px solid var(--gladiator-gold, #D4AF37);
    overflow: hidden !important; /* Hides the other 3 stacked images */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #000000;
}

.tiger-slide {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important; /* Stacks layers perfectly on mobile */
    top: 0 !important;
    left: 0 !important;
    opacity: 0;
    object-fit: contain;
    animation: tigerCinematicCycle 12s infinite linear !important;
}

/* --- STAGGERED DELAYS --- */
.tiger-slide:nth-child(1) { animation-delay: 0s !important; }
.tiger-slide:nth-child(2) { animation-delay: 3s !important; }
.tiger-slide:nth-child(3) { animation-delay: 6s !important; }
.tiger-slide:nth-child(4) { animation-delay: 9s !important; }

/* --- THE CINEMATIC CROSS-FADE KEYFRAMES --- */
@keyframes tigerCinematicCycle {
    0% { opacity: 0; }
    8% { opacity: 1; }    
    25% { opacity: 1; }   
    38% { opacity: 0; }   
    100% { opacity: 0; }
}

/* --- MOBILE SPECIFIC ENFORCEMENT --- */
@media screen and (max-width: 768px) {
    .tiger-slideshow-container {
        height: 245px !important; /* Ensures the frame does not collapse or stretch vertically */
    }
    .tiger-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
}



/* --- COMPACT DUAL-NAV ZONE --- */
.nav-btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 650px;
    margin: 40px auto 50px auto;
}

.btn-nav {
    flex: 1;
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid var(--sovereign-gold, #B8860B);
    padding: 14px 24px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-nav:hover {
    background-color: #2a2a2a;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    transform: translateY(-1px);
}

/* Accent version to give one option slightly more structural prominence */
.btn-nav-accent {
    background-color: #59002D; /* Your core highlight Indigo */
    border-color: #59002D;
}

.btn-nav-accent:hover {
    background-color: #400020;
    box-shadow: 0 4px 12px rgba(89, 0, 45, 0.25);
}

/* Mobile Adaptation */
@media (max-width: 767px) {
    .nav-btn-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .btn-nav {
        width: 100%;
    }
}


