/* BlackCoffee Matrix - Cyberpunk Documentation Styles */
/* Version 2.3.0 | Orange/Purple Theme */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

:root {
    /* BlackCoffee Matrix colors - Orange/Dark Theme */
    --neon-orange: #ff6600;
    --neon-orange-light: #ff8833;
    --neon-orange-glow: #ffaa55;
    --coffee-dark: #2a1810;
    --coffee-darker: #1a0f0a;
    --bg-dark: #000000;
    --bg-panel: rgba(0, 0, 0, 0.9);
    --bg-card: rgba(10, 10, 10, 0.8);
    --neon-purple: #6905e1;
    --neon-purple-light: #7c22e8;
    --neon-purple-dark: #5204b8;
    --neon-teal: #00ffcc;
    --neon-lime: #ccff00;
    --glass: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(255, 102, 0, 0.3);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* Animated background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 15% 50%, rgba(105, 5, 225, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 255, 204, 0.05) 0%, transparent 50%);
    z-index: -2;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 102, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 5, 225, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-orange);
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Main layout */
.cyber-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Left pane - Navigation */
.left-pane {
    width: 320px;
    min-width: 280px;
    max-width: 400px;
    background: var(--bg-panel);
    border-right: 1px solid rgba(255, 102, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.pane-header {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(236, 94, 2, 0.19));
    padding: 15px 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--neon-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
    text-shadow: 0 0 10px var(--neon-orange);
}

.tree-nav {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.tree-item {
    padding: 3px 0;
}

.tree-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tree-link:hover {
    background: rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.2);
}

.tree-link.active {
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.2), rgba(105, 5, 225, 0.1));
    border-color: var(--neon-orange);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.3);
}

.tree-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 3px;
}

.tree-text {
    font-size: 12px;
    font-weight: 500;
}

.tree-children {
    margin-left: 25px;
    border-left: 1px dashed rgba(255, 102, 0, 0.2);
    padding-left: 10px;
    display: none;
}

.tree-children.expanded {
    display: block;
}

.tree-expand {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 102, 0, 0.5);
    background: rgba(255, 102, 0, 0.1);
    color: var(--neon-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    margin-right: 8px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.tree-expand:hover {
    background: rgba(255, 102, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.tree-page-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--neon-teal);
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tree-page-link:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.3);
    color: var(--neon-orange);
}

.tree-page-link.active {
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.2), rgba(105, 5, 225, 0.1));
    border-color: var(--neon-orange);
    color: var(--neon-orange);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

/* Middle pane - Content */
.middle-pane {
    flex: 1;
    background: rgba(5, 5, 20, 0.9);
    overflow-y: auto;
    border-right: 1px solid rgba(105, 5, 225, 0.2);
    backdrop-filter: blur(10px);
}

/* Right pane - Info */
.right-pane {
    width: 280px;
    background: var(--bg-panel);
    border-left: 1px solid rgba(105, 5, 225, 0.3);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

/* Content area */
.content-area {
    padding: 30px;
    background: transparent;
}

/* Cyber Banner */
.cyber-banner {
    /* background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(105, 5, 225, 0.1)); */
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: -30px -30px 30px -30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow:
        0 0 50px rgba(255, 102, 0, 0.2),
        inset 0 0 50px rgba(255, 102, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.cyber-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-orange), #08020f, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.banner-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--neon-orange);
    box-shadow: 
        0 0 30px var(--neon-orange),
        inset 0 0 30px rgba(255, 102, 0, 0.3);
    background: var(--bg-dark);
    padding: 10px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px var(--neon-orange), inset 0 0 30px rgba(255, 102, 0, 0.3); }
    50% { box-shadow: 0 0 50px var(--neon-orange), inset 0 0 50px rgba(255, 102, 0, 0.4); }
}

.banner-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff 0%, var(--neon-orange) 50%, #050306 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 102, 0, 0.5);
}

.banner-text .version {
    font-size: 13px;
    color: var(--neon-teal);
    text-shadow: 0 0 10px var(--neon-teal);
    letter-spacing: 2px;
}

.banner-text .framework {
    font-size: 0.61em;
    color: #fff;
    margin-top: 6px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 102, 0, 0.2);
    font-family: 'Rajdhani', sans-serif;
}

.breadcrumb a {
    color: var(--neon-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--neon-orange);
    text-shadow: 0 0 10px var(--neon-orange);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--neon-purple);
}

/* Content sections */
.section {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 102, 0, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section:hover {
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.1);
}

.section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-orange);
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2::before {
    content: '>';
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--neon-teal);
    margin: 25px 0 15px 0;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    padding-bottom: 10px;
}

.section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

/* Tables */
.cyber-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
    background: rgba(10, 10, 30, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.cyber-table th {
    background: linear-gradient(180deg, rgba(255, 102, 0, 0.2), rgba(105, 5, 225, 0.1));
    color: var(--neon-orange);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid rgba(255, 102, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
}

.cyber-table td {
    padding: 12px 15px;
    border: 1px solid rgba(255, 102, 0, 0.1);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.cyber-table tr:hover td {
    background: rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.3);
}

/* Code blocks */
.cyber-code {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(105, 5, 225, 0.3);
    border-left: 3px solid var(--neon-purple);
    margin: 20px 0;
    /* font-family: 'Rajdhani', monospace; */
    /* font-size: 12px; */
    /* overflow-x: auto; */
    /* line-height: 2; */
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 20px rgba(105, 5, 225, 0.1);
    padding: 20px;
    /* white-space: pre; */
    display: block;
}

.cyber-code code {
    font-family: 'Rajdhani', monospace;
    font-size: 12px;
}

.cyber-code .keyword {
    color: var(--neon-lime);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.cyber-code .string {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(105, 5, 225, 0.3);
}

.cyber-code .function {
    color: var(--neon-teal);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.cyber-code .comment {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.cyber-code .number {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

/* Note boxes */
.cyber-note {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(105, 5, 225, 0.05));
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-left: 4px solid var(--neon-orange);
    padding: 18px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.1);
}

.note-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px var(--neon-orange));
}

.note-content {
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.note-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--neon-orange);
    text-shadow: 0 0 10px var(--neon-orange);
    letter-spacing: 1px;
}

/* Quick links */
.quick-links {
    background: linear-gradient(135deg, rgba(105, 5, 225, 0.1), rgba(0, 255, 204, 0.05));
    border: 1px solid rgba(105, 5, 225, 0.3);
    padding: 20px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(105, 5, 225, 0.1);
}

.quick-links h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--neon-teal);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-teal);
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    color: var(--neon-orange);
    padding-left: 10px;
    text-shadow: 0 0 10px var(--neon-orange);
}

/* Status bar */
.status-bar {
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.1), rgba(105, 5, 225, 0.1));
    border-top: 1px solid rgba(255, 102, 0, 0.3);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Rajdhani', sans-serif;
}

.status-section {
    border: 1px solid rgba(255, 102, 0, 0.2);
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.status-section:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

/* Right pane content */
.right-pane-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.info-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-block:last-child {
    border-bottom: none;
}

.info-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--neon-purple);
}

.info-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-orange), var(--neon-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-teal), var(--neon-orange));
}

/* Method badges */
.method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    margin-right: 8px;
    letter-spacing: 1px;
}

.method-get {
    background: rgba(105, 5, 225, 0.2);
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 10px rgba(105, 5, 225, 0.3);
}

.method-post {
    background: rgba(0, 255, 204, 0.2);
    color: var(--neon-teal);
    border: 1px solid var(--neon-teal);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.method-delete {
    background: rgba(255, 102, 0, 0.2);
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .right-pane {
        display: none;
    }
}

@media (max-width: 900px) {
    .left-pane {
        display: none;
    }
}

/* Lazy load fade-in animation */
.lazy-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.lazy-fade-in.loaded {
    opacity: 1;
}
