/* CSS Document - Mu Panem Documentation Subdomain */

:root {
    --bg-dark: #07040a;
    --bg-card: rgba(18, 11, 26, 0.65);
    --bg-sidebar: rgba(10, 6, 15, 0.95);
    --border-glass: rgba(0, 242, 254, 0.1);
    --border-glass-hover: rgba(0, 242, 254, 0.35);
    --text-primary: #ffffff;
    --text-muted: #b0a5be;
    --accent-cyan: #00f2fe;
    --accent-pink: #ff007f;
    --accent-purple: #8e2de2;
    --accent-gradient: linear-gradient(135deg, #00f2fe, #4facfe);
    --neon-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Callout Colors */
    --callout-info-bg: rgba(79, 172, 254, 0.08);
    --callout-info-border: #4facfe;
    --callout-warning-bg: rgba(254, 154, 0, 0.08);
    --callout-warning-border: #fe9a00;
    --callout-success-bg: rgba(0, 201, 80, 0.08);
    --callout-success-border: #00c950;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(142, 45, 226, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.5);
}

/* Header Styles */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(10, 6, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.logo-link {
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-area {
    flex: 0 1 500px;
    margin: 0 2rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding-left: 42px;
    padding-right: 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--neon-shadow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
}

.discord-btn {
    background: #5865F2;
    border-color: #5865F2;
}

.discord-btn:hover {
    background: #4752c4;
    border-color: #4752c4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

/* Layout Grid */
.main-layout {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Styling */
.sidebar {
    width: 300px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-glass);
    position: fixed;
    top: 64px;
    bottom: 0;
    left: auto;
    z-index: 99;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-group-title {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 8px;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 4px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-list a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.25s ease;
}

.nav-list a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-list a:hover i {
    transform: translateX(2px);
}

.nav-list li.active a {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.06);
    border-left: 3px solid var(--accent-cyan);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Content Area */
.content-area {
    margin-left: 300px;
    width: calc(100% - 300px);
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    transition: border-color 0.3s ease;
}

.content-card:hover {
    border-color: var(--border-glass-hover);
}

/* Article Typography */
.guide-article h1 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.guide-article h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.guide-article h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.guide-article h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.guide-article p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.guide-article hr {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin: 2.5rem 0;
}

/* Callout Box (Alerts) */
.callout {
    border-left: 4px solid #fff;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.callout.info {
    background: var(--callout-info-bg);
    border-color: var(--callout-info-border);
}

.callout.warning {
    background: var(--callout-warning-bg);
    border-color: var(--callout-warning-border);
}

.callout.success {
    background: var(--callout-success-bg);
    border-color: var(--callout-success-border);
}

.callout-title {
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.callout.info .callout-title { color: var(--callout-info-border); }
.callout.warning .callout-title { color: var(--callout-warning-border); }
.callout.success .callout-title { color: var(--callout-success-border); }

.callout p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Mark Style */
mark {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    padding: 2px 6px;
    border-radius: 4px;
}

mark.yellow {
    background: rgba(254, 154, 0, 0.15);
    color: #ffb84d;
}

/* Lists and Tables */
.guide-article ul, .guide-article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.guide-article li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Code Blocks */
pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

/* Image Figures */
figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Table Style */
.guides-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.guides-table th, .guides-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.guides-table th {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.02);
}

.guides-table tr:hover {
    background: rgba(0, 242, 254, 0.02);
}

/* Footer styling */
.guide-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Search Highlights */
.search-highlight {
    background: rgba(255, 255, 0, 0.3);
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .content-area {
        padding: 2rem 2rem;
    }
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0;
        width: 100%;
    }
    
    .search-area {
        margin: 0 1rem;
        flex: 1 1 auto;
    }
    
    .nav-actions {
        display: none; /* Hide top menu icons on small screen */
    }
}

@media (max-width: 768px) {
    .search-area {
        display: none; /* Hide search box on tiny screens */
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .guide-article h1 {
        font-size: 1.75rem;
    }
}
