/* TeraFit Documentation - Premium Design System */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Sidebar */
aside.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: #0b1120;
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.logo-section img {
    width: 32px;
    height: 32px;
}

.logo-section h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0.5rem;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
}

nav ul li a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
main.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem 4rem;
    max-width: 1200px;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Code Blocks */
pre {
    background: #020617;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 2rem 0 !important;
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding-left: 0;
    color: var(--text-muted);
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.feature-list li i {
    width: 16px;
    margin-right: 10px;
    color: var(--primary);
}

/* Icons */
.icon-success { color: #10b981 !important; }
.icon-warning { color: #f59e0b !important; }
.v-middle { vertical-align: middle; margin-right: 10px; }

/* Architecture & Folder Tree */
.architecture-grid {
    grid-template-columns: 1fr 2fr !important;
}

.folder-tree {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.folder-tree .root { color: var(--primary); }
.folder-tree .p-1 { padding-left: 1rem; }
.folder-tree .p-2 { padding-left: 2rem; }
.folder-tree .p-3 { padding-left: 3rem; }

.text-small { font-size: 0.9rem; }
.m-0 { margin-top: 0 !important; }
.architecture-icon { width: 18px; margin-right: 8px; }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    aside.sidebar {
        width: 80px;
        padding: 1rem 0.5rem;
    }
    .logo-section h1, nav ul li a span {
        display: none;
    }
    main.content {
        margin-left: 80px;
        padding: 2rem;
    }
    .hero {
        flex-direction: column;
        height: auto;
    }
}
