/* User-Directed Reset */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* WRLD ENT Blue & Grey Theme */
:root {
    /* Primary Colors */
    --blue-primary: #3b82f6;     /* Bright Action Blue */
    --blue-muted: #1e3a8a;       /* Deep Navy for accents */
    
    /* Grey Scale */
    --grey-900: #0f172a;        /* Deep Background */
    --grey-800: #1e293b;        /* Card/Sidebar Background */
    --grey-700: #334155;        /* Borders/Dividers */
    --grey-400: #94a3b8;        /* Muted Text */
    
    --text-white: #f8fafc;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--grey-900);
    color: var(--text-white);
    line-height: 1.6;
}

/* User Interface Components */

/* Interactive Blue Buttons */
.btn-user {
    background-color: var(--blue-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-user:hover {
    background-color: #2563eb; /* Slightly darker blue on hover */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Grey Interactive Cards */
.user-card {
    background-color: var(--grey-800);
    border: 1px solid var(--grey-700);
    border-radius: 10px;
    padding: 24px;
    transition: var(--transition);
}

.user-card:hover {
    border-color: var(--blue-primary);
}

/* Input Fields */
.input-grey {
    background-color: var(--grey-900);
    border: 1px solid var(--grey-700);
    color: var(--text-white);
    padding: 12px;
    border-radius: 4px;
    width: 100%;
}

.input-grey:focus {
    outline: none;
    border-color: var(--blue-primary);
}

/* Typography Helpers */
.muted-label {
    color: var(--grey-400);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Sticky Header Styling */
header {
    position: sticky; /* Keeps header visible on scroll */
    top: 0;
    width: 100%;
    background-color: var(--grey-800); /* Dark grey background */
    border-bottom: 1px solid var(--grey-700); /* Subtle divider */
    z-index: 1000; /* Ensures it stays above other content */
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* Pushes logo to left and links to right */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo Design */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-primary); /* Brand blue color */
    text-decoration: none;
    letter-spacing: -1px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--grey-400); /* Muted grey text */
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--blue-primary); /* Turns blue on hover */
}

/* Responsive "Mobile" Tweak */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Hides links on small screens by default */
    }
}
/* --- Section & Layout CSS --- */

/* Main Section Wrapper */
section {
    padding: 80px 0; /* Vertical breathing room */
    width: 100%;
}

/* Secondary Background (Alternating Sections) */
section.alt-bg {
    background-color: var(--grey-800);
    border-top: 1px solid var(--grey-700);
    border-bottom: 1px solid var(--grey-700);
}

/* Content Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Typography */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--grey-400);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Grid System */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Individual Feature/Tool Section */
.tool-feature {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 100px;
}

/* Reverse layout for alternating features */
.tool-feature.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1;
    background: var(--grey-800);
    border: 2px solid var(--grey-700);
    border-radius: 12px;
    height: 300px; /* Placeholder for images/screenshots */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
}

/* Small Screen Adjustments */
@media (max-width: 768px) {
    .tool-feature, .tool-feature.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
/* --- Anchor (a) Tag CSS --- */

a {
    color: inherit; /* Keeps the text color the same as surrounding text by default */
    text-decoration: none; /* Removes the default underline */
    transition: var(--transition); /* Uses the 0.3s transition from our root */
    cursor: pointer;
}

/* Hover State - Becomes our Primary Blue */
a:hover {
    color: var(--blue-primary);
    text-decoration: none;
}

/* Focus State - For keyboard navigation accessibility */
a:focus {
    outline: 2px solid var(--blue-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Active State - For when the link is being clicked */
a:active {
    filter: brightness(0.8);
    transform: translateY(1px); /* Slight "press" effect */
}

/* Specialized Link Types */

/* Action Link - Bold blue with a bottom border */
.link-action {
    color: var(--blue-primary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.link-action:hover {
    border-bottom-color: var(--blue-primary);
}

/* Muted Link - For footers or secondary info */
.link-muted {
    color: var(--grey-400);
}

.link-muted:hover {
    color: var(--text-white);
}
/* Documentation Container */
.docs-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
}

/* Fixed Sidebar Navigation */
.docs-sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 40px 20px;
    background-color: var(--grey-800);
    border-right: 1px solid var(--grey-700);
    overflow-y: auto; /* Scrollable if links exceed height */
}

.docs-nav-group {
    margin-bottom: 30px;
}

.docs-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li a {
    display: block;
    padding: 8px 0;
    color: var(--grey-400);
    font-size: 0.95rem;
    transition: var(--transition);
}

.docs-sidebar li a:hover,
.docs-sidebar li a.active {
    color: var(--text-white);
    padding-left: 5px; /* Subtle slide effect */
}

/* Main Documentation Content */
.docs-content {
    flex: 1;
    padding: 60px 80px;
    max-width: 800px; /* Optimal reading width */
}
/* Code Blocks (Technical Style) */
pre {
    background-color: var(--grey-800);
    border: 1px solid var(--grey-700);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Fira Code', monospace;
    color: #93c5fd; /* Soft blue for code */
}

/* Callout/Alert Boxes */
.docs-callout {
    padding: 20px;
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--blue-primary);
    border-radius: 4px;
    margin: 30px 0;
}

.docs-callout h4 {
    color: var(--blue-primary);
    margin-bottom: 5px;
}
@media (max-width: 900px) {
    .docs-wrapper {
        flex-direction: column;
    }
    .docs-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--grey-700);
    }
    .docs-content {
        padding: 40px 20px;
    }
}
/* --- WRLD ENT: About & Documentation Extensions --- */

/* --- About Us Refinements --- */
.about-panel {
    margin-top: 100px;
    padding: 40px;
    background-color: var(--grey-800);
    border-radius: 12px;
    border: 1px solid var(--grey-700);
}

.about-intro {
    color: var(--text-white);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.grid-item {
    border-left: 3px solid var(--blue-primary);
    padding-left: 20px;
}

.grid-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--grey-400);
}

/* Mobile responsive grid */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}


/* 2. Mission & Vision Cards */
.mission-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: -50px auto 80px; /* Pulls up over the hero */
    padding: 0 24px;
}

.mission-card {
    background: var(--grey-800);
    border: 1px solid var(--grey-700);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
}

.mission-card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mission-card h3 {
    color: var(--blue-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* 3. Documentation Specific Layouts */

/* Dropdown Menu (Pure CSS) */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--grey-800);
    border: 1px solid var(--grey-700);
    border-radius: 8px;
    min-width: 220px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1001;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    color: var(--grey-400);
    padding: 8px 0;
    font-size: 0.9rem;
}
.dropdown-menu a:hover { color: var(--blue-primary); }

/* Technical Badges */
.badge {
    background: var(--blue-muted);
    color: var(--blue-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid var(--blue-primary);
}

/* Syntax Highlighting for Code Blocks */
.keyword { color: #f472b6; } /* Pinkish for reserved words */
.func { color: #60a5fa; }    /* Light blue for functions */
.string { color: #4ade80; }  /* Green for strings */
.comment { color: var(--grey-700); font-style: italic; }

/* 4. Footer Styling */
footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--grey-700);
    background-color: var(--grey-900);
    color: var(--grey-400);
    font-size: 0.85rem;
}

/* 5. Utility Classes */
.highlight { color: var(--blue-primary); font-weight: 700; }
.text-center { text-align: center; }
.full-width { width: 100%; max-width: 900px; margin: 0 auto; }
/* --- Login Specific Styles --- */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background-color: var(--grey-800);
    border: 1px solid var(--grey-700);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.discord-btn {
    display: flex;
    width: 100%;
    background-color: #5865F2; /* Official Discord Blurple */
    margin-bottom: 20px;
}

.discord-btn:hover {
    background-color: #4752c4;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--grey-400);
    font-size: 0.75rem;
    font-weight: 800;
    margin: 25px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--grey-700);
}

.separator:not(:empty)::before { margin-right: 15px; }
.separator:not(:empty)::after { margin-left: 15px; }
/* Sidebar-style headers inside the dropdown */
.docs-nav-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--blue-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 12px 5px;
    margin-bottom: 5px;
}

.dropdown-menu hr {
    border: 0;
    border-top: 1px solid var(--grey-700);
    margin: 8px 0;
}

/* Ensure the dropdown menu doesn't get cut off */
.dropdown-menu {
    min-width: 240px;
}

.dropdown-menu a {
    padding: 8px 15px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: rgba(59, 130, 246, 0.1);
}
.hori {
    background: none;
    padding-top:5px;
}
.hori-min {
    background: none;
    padding-top:15px;
}