/* Glance LED Documentation Styles */

:root {
    /* Brand Colors - Customize these to match your exact brand */
    --primary-bg: #0a0a0a;
    --secondary-bg: #141414;
    --accent-color: #00ff88;
    --accent-blue: #00a6ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --code-bg: #1e1e1e;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff4444;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Logo Font - You'll need to include the Ethnocentric font file */
@font-face {
    font-family: 'Ethnocentric';
    /* Add your font file path here */
    /* src: url('fonts/ethnocentric.ttf') format('truetype'); */
}

.logo {
    font-family: 'Ethnocentric', 'Inter', sans-serif;
    font-weight: 700;
}

/* Layout Container */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Navigation */
.nav-section {
    padding: 1rem 0;
}

.folder {
    margin-bottom: 0.5rem;
}

.folder-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.folder-header:hover {
    background-color: rgba(0, 255, 136, 0.05);
    color: var(--accent-color);
}

.folder-icon {
    margin-right: 0.75rem;
    transition: transform 0.2s ease;
}

.folder.open .folder-icon {
    transform: rotate(90deg);
}

.folder-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.folder.open .folder-content {
    max-height: 1000px;
}

.doc-link {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 3rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.doc-link:hover {
    color: var(--text-primary);
    background-color: rgba(0, 166, 255, 0.05);
}

.doc-link.active {
    color: var(--accent-blue);
    background-color: rgba(0, 166, 255, 0.1);
}

.doc-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-blue);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* iframe for MkDocs content */
.content-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: var(--primary-bg);
}

/* Loading indicator */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

/* Error State */
.error-message {
    padding: 2rem;
    text-align: center;
    color: var(--error-color);
}

.error-message h2 {
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Navigation Loading State */
.nav-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }
    
    #default-content {
        padding: 1rem;
    }
    
    .doc-title {
        font-size: 2rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
}

/* LED Glow Effects */
.glow-green {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(0, 166, 255, 0.5);
}

/* Smooth Transitions */
* {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Default Content Styles */
#default-content {
    padding: 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.doc-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.doc-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 1.2;
}

.doc-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Quick Links Grid */
.quick-links {
    margin: 3rem 0;
}

.quick-links h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.link-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.link-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.link-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.link-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
    background-color: rgba(255, 255, 255, 0.02);
}

.callout-info {
    border-color: var(--accent-blue);
    background-color: rgba(0, 166, 255, 0.05);
}

.callout-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.callout p {
    margin: 0;
    color: var(--text-secondary);
}

code {
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}