/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

/* Container and Layout */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crosshair-icon {
    font-size: 2rem;
    color: #3b82f6;
    font-weight: bold;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.version {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #f1f5f9;
    background-color: #334155;
}

.nav-link.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Main Layout */
.main {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    padding: 2rem 0;
    border-right: 1px solid #334155;
    background: rgba(15, 23, 42, 0.5);
}

.sidebar-nav {
    padding: 0 1.5rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-link:hover {
    color: #f1f5f9;
    background-color: #334155;
}

/* Content Area */
.content {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.breadcrumb .current {
    color: #3b82f6;
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
}

/* Intro Card */
.intro-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #475569;
    margin-bottom: 3rem;
}

.intro-card p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #94a3b8;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* Code Blocks */
pre {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
}

/* Subsections */
.subsection {
    margin-bottom: 3rem;
}

.subsection h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.style-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 0.75rem;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.style-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.style-preview {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    display: block;
}

.style-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.style-item p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Options List */
.options-list {
    display: grid;
    gap: 1.5rem;
}

.option {
    background: rgba(30, 41, 59, 0.4);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
}

.option h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.option p {
    color: #94a3b8;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.module-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.module-card p {
    color: #94a3b8;
}

/* UI Layout */
.ui-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ui-panel {
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
}

.ui-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.ui-panel p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.ui-panel ul {
    list-style: none;
    color: #94a3b8;
}

.ui-panel li {
    padding: 0.25rem 0;
    border-left: 2px solid #3b82f6;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* Control Buttons */
.control-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.button-info {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #475569;
}

.button-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.button-info p {
    color: #94a3b8;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.tech-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.tech-item p {
    color: #94a3b8;
}

/* Requirements */
.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.req-category {
    background: rgba(30, 41, 59, 0.4);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
}

.req-category h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.req-category ul {
    list-style: none;
    color: #94a3b8;
}

.req-category li {
    padding: 0.5rem 0;
    border-left: 2px solid #10b981;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* Architecture Flow */
.architecture-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.arch-component {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.arch-arrow {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: bold;
}

/* Install Methods */
.install-methods {
    margin-bottom: 2rem;
}

.install-method {
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    margin-bottom: 1.5rem;
}

.install-method h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

/* Dependencies */
.dependencies {
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
}

.dependencies h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.dependencies ul {
    list-style: none;
    color: #94a3b8;
}

.dependencies li {
    padding: 0.5rem 0;
    border-left: 2px solid #3b82f6;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    border-left: 4px solid #3b82f6;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #94a3b8;
    line-height: 1.7;
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.note-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

.note-card.warning {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.note-card.info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.note-card.success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.note-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.note-card p {
    color: #94a3b8;
}

/* Pro Tip */
.pro-tip {
    background: linear-gradient(135deg, #059669, #047857);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
}

.pro-tip h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.pro-tip p {
    color: #d1fae5;
    font-size: 1.1rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid #334155;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #334155;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .architecture-flow {
        flex-direction: column;
        text-align: center;
    }
    
    .arch-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .feature-grid,
    .style-grid,
    .modules-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .ui-layout,
    .requirements-list,
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}