/* AITBC Documentation Styles * Shared CSS for all documentation pages */ /* Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } /* ============================================ Theme Variables ============================================ */ /* Dark mode (default) */ :root { --primary-color: #2563eb; --secondary-color: #7c3aed; --accent-color: #0ea5e9; --success-color: #10b981; --warning-color: #f59e0b; --danger-color: #ef4444; --text-dark: #f3f4f6; --text-light: #9ca3af; --bg-light: #111827; --bg-white: #1f2937; --border-color: #374151; --code-bg: #0d1117; --code-text: #e6edf3; } /* Light mode */ body.light { --primary-color: #2563eb; --secondary-color: #7c3aed; --accent-color: #0ea5e9; --success-color: #10b981; --warning-color: #f59e0b; --danger-color: #ef4444; --text-dark: #1f2937; --text-light: #6b7280; --bg-light: #f9fafb; --bg-white: #ffffff; --border-color: #e5e7eb; --code-bg: #1f2937; --code-text: #e5e7eb; } /* ============================================ Base Styles ============================================ */ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: var(--text-dark); background: var(--bg-light); transition: background 0.3s ease, color 0.3s ease; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; } a:hover { color: var(--accent-color); } /* ============================================ Header & Navigation ============================================ */ header { background: var(--bg-white); box-shadow: 0 4px 20px rgba(0,0,0,0.15); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 3px solid transparent; background-image: linear-gradient(var(--bg-white), var(--bg-white)), linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--success-color)); background-origin: border-box; background-clip: padding-box, border-box; } nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; } .logo { font-size: 1.5rem; font-weight: bold; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; transition: transform 0.3s ease; } .logo:hover { transform: scale(1.05); } .nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; } .nav-links a { color: var(--text-dark); text-decoration: none; transition: all 0.3s ease; padding: 0.5rem 0; position: relative; } .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); transition: width 0.3s ease; } .nav-links a:hover::after, .nav-links a.active::after { width: 100%; } .nav-links a:hover { color: var(--primary-color); } /* Site Header (unified) */ .site-header { background: var(--bg-white); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .site-header .header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; } .site-header .brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; } .site-header .brand i { font-size: 2rem; color: var(--primary-color); } .site-header .brand span { font-size: 1.5rem; font-weight: bold; color: var(--text-dark); } .site-header .header-nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; } .site-header .header-nav a { color: var(--text-dark); padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 500; text-decoration: none; transition: color 0.3s; } .site-header .header-nav a:hover, .site-header .header-nav a.active { color: var(--primary-color); } @media (max-width: 768px) { .site-header .header-nav { gap: 0.5rem; } .site-header .header-nav a { padding: 0.4rem 0.5rem; font-size: 0.85rem; } } /* Theme Toggle Button */ .theme-toggle { background: none; border: 2px solid var(--border-color); border-radius: 0.5rem; padding: 0.5rem 0.75rem; cursor: pointer; font-size: 1.1rem; color: var(--text-dark); transition: all 0.3s ease; } .theme-toggle:hover { background: var(--bg-white); border-color: var(--primary-color); transform: scale(1.05); } /* ============================================ Main Content ============================================ */ main { margin-top: 90px; padding: 40px 0; } .doc-header { text-align: center; margin-bottom: 3rem; } .doc-header h1 { font-size: 3rem; color: var(--text-dark); margin-bottom: 1rem; } .doc-header p { font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin: 0 auto; } /* ============================================ Content Sections ============================================ */ .content-section { background: var(--bg-white); border-radius: 10px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .content-section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text-dark); border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem; } .content-section h3 { font-size: 1.4rem; margin: 1.5rem 0 1rem; color: var(--text-dark); } .content-section h4 { font-size: 1.1rem; margin: 1rem 0 0.5rem; color: var(--primary-color); } .content-section p { margin-bottom: 1rem; color: var(--text-light); } .content-section ul, .content-section ol { margin-bottom: 1rem; padding-left: 2rem; } .content-section li { margin-bottom: 0.5rem; color: var(--text-light); } /* ============================================ Code Blocks ============================================ */ .code-block { background: linear-gradient(135deg, #0d1117 0%, #161b22 100%); color: #e6edf3; padding: 1.5rem; border-radius: 10px; overflow-x: auto; margin: 1rem 0; font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace; font-size: 0.9rem; line-height: 1.6; border: 1px solid #30363d; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); white-space: pre-wrap; word-wrap: break-word; } code { background: var(--bg-light); padding: 0.2rem 0.4rem; border-radius: 4px; font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace; font-size: 0.9em; color: var(--accent-color); } /* ============================================ Steps ============================================ */ .step { display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); } .step:last-of-type { border-bottom: none; } .step-number { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: #fff; width: 36px; height: 36px; min-width: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1rem; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); } .step-content { flex-grow: 1; } .step-content h4 { color: var(--text-dark); margin-bottom: 0.25rem; font-size: 1.1rem; } .step-content p { color: var(--text-light); margin-bottom: 0.5rem; font-size: 0.95rem; } /* ============================================ Alert Boxes ============================================ */ .alert { padding: 1rem 1.25rem; border-radius: 8px; margin: 1.5rem 0; } .alert-info { background: rgba(59, 130, 246, 0.15); border-left: 4px solid #3b82f6; color: var(--text-dark); } .alert-warning { background: rgba(245, 158, 11, 0.15); border-left: 4px solid #f59e0b; color: var(--text-dark); } .alert-success { background: rgba(16, 185, 129, 0.15); border-left: 4px solid #10b981; color: var(--text-dark); } .alert-danger { background: rgba(239, 68, 68, 0.15); border-left: 4px solid #ef4444; color: var(--text-dark); } /* ============================================ Buttons ============================================ */ .btn { display: inline-block; padding: 12px 30px; background: var(--primary-color); color: #fff; text-decoration: none; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; } .btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); color: #fff; } .btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); } .btn-outline:hover { background: var(--primary-color); color: #fff; } .btn-success { background: var(--success-color); } .btn-warning { background: var(--warning-color); } .btn-danger { background: var(--danger-color); } /* ============================================ Cards & Grids ============================================ */ .card { background: var(--bg-white); border-radius: 10px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: all 0.3s ease; } .card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); } .grid { display: grid; gap: 1.5rem; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } /* ============================================ Tables ============================================ */ table { width: 100%; border-collapse: collapse; margin: 1rem 0; } th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border-color); } th { background: var(--bg-light); color: var(--text-dark); font-weight: 600; } tr:hover { background: rgba(59, 130, 246, 0.05); } /* ============================================ Badges ============================================ */ .badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; } .badge-primary { background: var(--primary-color); color: #fff; } .badge-success { background: var(--success-color); color: #fff; } .badge-warning { background: var(--warning-color); color: #fff; } .badge-danger { background: var(--danger-color); color: #fff; } /* ============================================ Quick Links ============================================ */ .quick-links { background: var(--bg-white); border-radius: 15px; padding: 3rem; margin-bottom: 4rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); } .quick-links h2 { font-size: 2rem; margin-bottom: 2rem; color: var(--text-dark); text-align: center; } .links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; } .link-item { display: flex; align-items: center; padding: 1rem; background: var(--bg-light); border-radius: 10px; text-decoration: none; color: var(--text-dark); transition: all 0.3s; } .link-item:hover { background: var(--primary-color); color: #fff; transform: translateX(5px); } .link-item i { font-size: 1.5rem; margin-right: 1rem; color: var(--primary-color); } .link-item:hover i { color: #fff; } /* ============================================ Footer ============================================ */ footer { background: var(--bg-white); color: var(--text-dark); padding: 40px 0; text-align: center; margin-top: 40px; border-top: 1px solid var(--border-color); } footer p { color: var(--text-light); } /* ============================================ Responsive Design ============================================ */ @media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .doc-header h1 { font-size: 2rem; } .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .nav-links { gap: 1rem; } .step { flex-direction: column; } .content-section { padding: 1.5rem; } } @media (max-width: 480px) { .container { padding: 0 15px; } .btn { padding: 10px 20px; font-size: 0.9rem; } } /* ============================================ Utility Classes ============================================ */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .p-1 { padding: 0.5rem; } .p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .p-4 { padding: 2rem; } .hidden { display: none; } .flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; } /* ============================================ Animations ============================================ */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .animate-fadeIn { animation: fadeIn 0.5s ease-out; } .animate-pulse { animation: pulse 2s infinite; } /* ============================================ Page-Specific: Audience Badge ============================================ */ .audience-badge { display: inline-block; color: #fff; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; margin-bottom: 1rem; } .audience-badge.miner { background: var(--primary-color); } .audience-badge.client { background: var(--success-color); } .audience-badge.developer { background: var(--warning-color); } /* ============================================ Page-Specific: Quick Stats (Miners) ============================================ */ .quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; } .stat-card { background: var(--bg-white); padding: 1.5rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; } .stat-value { font-size: 2rem; font-weight: bold; color: var(--primary-color); } .stat-label { color: var(--text-light); margin-top: 0.5rem; } /* ============================================ Page-Specific: Requirements Grid (Miners) ============================================ */ .requirements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; } .requirement-card { background: var(--bg-light); padding: 1rem; border-radius: 8px; border-left: 4px solid var(--primary-color); } .requirement-card h4 { color: var(--primary-color); margin-bottom: 0.5rem; } .requirement-card p { color: var(--text-light); margin: 0; } /* ============================================ Page-Specific: Calculator (Miners) ============================================ */ .calculator { background: var(--bg-light); padding: 2rem; border-radius: 10px; margin: 2rem 0; } .calculator h3 { margin-bottom: 1.5rem; color: var(--text-dark); } .calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; } .calc-input { display: flex; flex-direction: column; } .calc-input label { font-weight: 600; margin-bottom: 0.5rem; color: var(--text-dark); } .calc-input input, .calc-input select { padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; background: var(--bg-white); color: var(--text-dark); } .calc-input input:focus, .calc-input select:focus { outline: none; border-color: var(--primary-color); } .calc-result { background: var(--bg-white); padding: 1.5rem; border-radius: 8px; margin-top: 1rem; text-align: center; } .calc-result-value { font-size: 2.5rem; font-weight: bold; color: var(--success-color); } /* ============================================ Page-Specific: FAQ (Miners) ============================================ */ .faq-item { background: var(--bg-light); padding: 1.25rem; border-radius: 8px; margin-bottom: 1rem; } .faq-question { font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; } .faq-answer { color: var(--text-light); line-height: 1.7; } /* ============================================ Page-Specific: Feature Cards (Clients) ============================================ */ .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin: 2rem 0; } .feature-card { background: var(--bg-white); padding: 2rem; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; } .feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); } .feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; } .feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); } .feature-card p { color: var(--text-light); } /* ============================================ Page-Specific: Use Case Cards (Clients) ============================================ */ .use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 2rem 0; } .use-case-card { background: var(--bg-light); padding: 1.5rem; border-radius: 10px; border-top: 4px solid var(--primary-color); } .use-case-card h4 { color: var(--primary-color); margin-bottom: 1rem; } .use-case-card p { color: var(--text-light); } /* ============================================ Page-Specific: Pricing Table (Clients) ============================================ */ .pricing-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; } .pricing-card { background: var(--bg-white); border-radius: 12px; padding: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease; } .pricing-card.featured { border: 2px solid var(--primary-color); transform: scale(1.05); } .pricing-card h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 1rem; } .pricing-card .price { font-size: 3rem; font-weight: bold; color: var(--primary-color); margin-bottom: 1rem; } .pricing-card .price-unit { font-size: 1rem; color: var(--text-light); } .pricing-card ul { list-style: none; padding: 0; margin-bottom: 2rem; } .pricing-card li { padding: 0.5rem 0; color: var(--text-light); } .pricing-card li:before { content: "✓"; color: var(--success-color); margin-right: 0.5rem; } /* ============================================ Page-Specific: Tech Stack (Developers) ============================================ */ .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; } .tech-item { background: var(--bg-light); padding: 1.25rem; border-radius: 10px; text-align: center; transition: all 0.3s ease; } .tech-item:hover { transform: translateY(-5px); background: var(--bg-white); box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .tech-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 0.5rem; } .tech-item span { color: var(--text-dark); font-weight: 500; } /* ============================================ Page-Specific: Contribution Cards (Developers) ============================================ */ .contribution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; } .contribution-card { background: var(--bg-light); padding: 1.5rem; border-radius: 10px; border-left: 4px solid var(--primary-color); } .contribution-card h4 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.2rem; } .contribution-card ul { list-style: none; padding: 0; } .contribution-card li { padding: 0.3rem 0; position: relative; padding-left: 1.5rem; color: var(--text-light); } .contribution-card li:before { content: "→"; position: absolute; left: 0; color: var(--primary-color); } /* ============================================ Page-Specific: Reader Cards (Index) ============================================ */ .reader-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 4rem; } .reader-card { background: var(--bg-white); border-radius: 15px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s; position: relative; overflow: hidden; } .reader-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; } .reader-card.miner::before { background: var(--primary-color); } .reader-card.client::before { background: var(--success-color); } .reader-card.developer::before { background: var(--warning-color); } .reader-card.full-doc::before { background: var(--danger-color); } .reader-card.components::before { background: #8b5cf6; } .reader-card.flow::before { background: #06b6d4; } .reader-card:hover { transform: translateY(-10px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); } .reader-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; margin-bottom: 1.5rem; } .reader-card.miner .reader-icon { background: var(--primary-color); } .reader-card.client .reader-icon { background: var(--success-color); } .reader-card.developer .reader-icon { background: var(--warning-color); } .reader-card.full-doc .reader-icon { background: var(--danger-color); } .reader-card.components .reader-icon { background: #8b5cf6; } .reader-card.flow .reader-icon { background: #06b6d4; } .reader-card h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-dark); } .reader-card p { color: var(--text-light); margin-bottom: 2rem; line-height: 1.8; } .reader-features { list-style: none; margin-bottom: 2rem; padding: 0; } .reader-features li { padding: 0.5rem 0; color: var(--text-light); position: relative; padding-left: 1.5rem; } .reader-features li::before { content: "✓"; position: absolute; left: 0; font-weight: bold; } .reader-card.miner .reader-features li::before { color: var(--primary-color); } .reader-card.client .reader-features li::before { color: var(--success-color); } .reader-card.developer .reader-features li::before { color: var(--warning-color); } .reader-card.miner .btn { background: var(--primary-color); } .reader-card.client .btn { background: var(--success-color); } .reader-card.developer .btn { background: var(--warning-color); } .reader-card.full-doc .btn { background: var(--danger-color); } .reader-card.components .btn { background: #8b5cf6; } .reader-card.flow .btn { background: #06b6d4; } /* ============================================ Page-Specific: Search Bar (Index) ============================================ */ .search-container { max-width: 600px; margin: 0 auto 4rem; position: relative; } .search-bar { width: 100%; padding: 1rem 3rem 1rem 1.5rem; font-size: 1.1rem; border: 2px solid var(--border-color); border-radius: 50px; outline: none; transition: all 0.3s; background: var(--bg-white); color: var(--text-dark); } .search-bar:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); } .search-bar::placeholder { color: var(--text-light); } .search-icon { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1.2rem; } /* ============================================ Page-Specific: Help Section (Index) ============================================ */ .help-section { text-align: center; padding: 3rem; background: var(--bg-white); border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); } .help-section h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-dark); } .help-section p { color: var(--text-light); margin-bottom: 2rem; } .help-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } /* ============================================ Responsive: Page-Specific ============================================ */ @media (max-width: 768px) { .reader-levels { grid-template-columns: 1fr; } .calc-row { grid-template-columns: 1fr; } .pricing-card.featured { transform: none; } .help-buttons { flex-direction: column; align-items: center; } .doc-grid { grid-template-columns: 1fr; } .sidebar { position: static; max-height: none; } .components-grid { grid-template-columns: 1fr; } .api-grid { grid-template-columns: 1fr; } } /* ============================================ Component Pages: Layout ============================================ */ .breadcrumb { margin-bottom: 2rem; } .breadcrumb a { color: var(--primary-color); text-decoration: none; } .breadcrumb span { color: var(--text-light); margin: 0 0.5rem; } .back-button { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-color); text-decoration: none; margin-bottom: 2rem; font-weight: 600; } .back-button:hover { color: var(--secondary-color); } .doc-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; } .sidebar { background: var(--bg-white); border-radius: 10px; padding: 1.5rem; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .sidebar h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-dark); } .sidebar ul { list-style: none; padding: 0; } .sidebar li { margin-bottom: 0.25rem; } .sidebar a { display: block; padding: 0.4rem 0.75rem; color: var(--text-light); text-decoration: none; border-radius: 6px; font-size: 0.9rem; transition: all 0.2s; } .sidebar a:hover, .sidebar a.active { background: rgba(59, 130, 246, 0.1); color: var(--primary-color); } .sidebar .sub-item { padding-left: 1.5rem; font-size: 0.85rem; } .sidebar ul ul { margin-top: 0.25rem; } /* ============================================ Component Pages: Cards ============================================ */ .components-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 3rem; } .component-card { background: var(--bg-white); border-radius: 12px; padding: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 1px solid var(--border-color); } .component-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--primary-color); } .component-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); margin-bottom: 1.5rem; } .component-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; color: var(--text-dark); } .component-card p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.7; } .component-status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; } .component-status.live { background: rgba(16, 185, 129, 0.15); color: var(--success-color); } .component-status.live i { font-size: 0.5rem; } .component-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-color); text-decoration: none; font-weight: 600; transition: all 0.3s; } .component-link:hover { color: var(--secondary-color); transform: translateX(5px); } /* ============================================ Component Pages: Section blocks ============================================ */ .section { background: var(--bg-white); padding: 2.5rem; margin-bottom: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text-dark); } .inline-code { background: var(--bg-light); padding: 0.2rem 0.5rem; border-radius: 4px; font-family: 'Fira Code', 'JetBrains Mono', monospace; font-size: 0.9em; color: var(--accent-color); } /* ============================================ API Pages ============================================ */ .api-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; } .api-card { background: var(--bg-light); border-radius: 10px; padding: 1.5rem; border-left: 4px solid var(--primary-color); } .api-card h4 { color: var(--primary-color); margin-bottom: 0.5rem; } .api-endpoint, .endpoint { background: var(--bg-light); border-radius: 8px; padding: 1.25rem; margin: 1rem 0; border: 1px solid var(--border-color); } .method { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 700; font-size: 0.8rem; color: #fff; margin-right: 0.5rem; } .method.get, .get { background: var(--success-color); } .method.post, .post { background: var(--primary-color); } .method.delete, .delete { background: var(--danger-color); } .http-request { font-family: 'Fira Code', monospace; font-size: 0.9rem; } .error-box { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--danger-color); border-radius: 8px; padding: 1rem; margin: 1rem 0; } .status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; } /* ============================================ Tabs ============================================ */ .tabs { margin: 1.5rem 0; } .tab-buttons { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0; } .tab-button { padding: 0.75rem 1.5rem; background: none; border: none; color: var(--text-light); cursor: pointer; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; } .tab-button:hover, .tab-button.active { color: var(--primary-color); border-bottom-color: var(--primary-color); } .tab-content { display: none; padding: 1rem 0; } .tab-content.active { display: block; } /* ============================================ Code Groups ============================================ */ .code-group { margin: 1rem 0; border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; } .code-group-header { background: var(--bg-light); padding: 0.5rem 1rem; font-weight: 600; color: var(--text-dark); } .code-group-content { padding: 0; } /* ============================================ Mermaid Diagrams ============================================ */ .mermaid { text-align: center; margin: 2rem 0; } /* ============================================ Flow Diagram ============================================ */ .flow-diagram { background: var(--bg-white); border-radius: 10px; padding: 2rem; margin: 2rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow-x: auto; } /* ============================================ Misc: Timeline, Security, CTA, Browser ============================================ */ .timeline { position: relative; padding-left: 2rem; margin: 1.5rem 0; } .timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--primary-color); } .security-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; } .cta-button { display: inline-block; padding: 1rem 2rem; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: #fff; border-radius: 50px; font-weight: 600; text-decoration: none; transition: all 0.3s; } .cta-button:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4); color: #fff; } .hero-gradient { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%); border-radius: 15px; padding: 2rem; margin: 2rem 0; } .browser-button, .chrome-button, .firefox-button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s; } .chrome-button { background: #4285f4; color: #fff; } .firefox-button { background: #ff7139; color: #fff; } /* ============================================ Announcement Banners ============================================ */ .announce-banner { margin-top: 2rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%); border-radius: 15px; border: 2px solid rgba(59, 130, 246, 0.2); } .announce-banner.green { border-color: rgba(16, 185, 129, 0.2); } .announce-banner h3 { color: var(--success-color); margin-bottom: 0.5rem; font-size: 1.2rem; } .announce-banner p { color: var(--text-light); margin: 0; } /* ============================================ Markdown Source Links ============================================ */ .source-links { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; } .source-links a { color: var(--primary-color); font-size: 0.9rem; text-decoration: none; } .source-links a:hover { text-decoration: underline; } /* ============================================ Search Results ============================================ */ .search-results { max-width: 600px; margin: -3rem auto 2rem; background: var(--bg-white); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); overflow: hidden; } .search-results a { display: block; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); color: var(--text-dark); text-decoration: none; } .search-results a:hover { background: rgba(59, 130, 246, 0.05); } .search-results small { color: var(--text-light); } .search-results .no-results { padding: 1rem; color: var(--text-light); } /* ============================================ Inline Code Blocks (pre/code in content) ============================================ */ .code-inline { background: #1f2937; color: #f9fafb; padding: 1rem; border-radius: 8px; overflow-x: auto; font-family: 'Fira Code', 'JetBrains Mono', monospace; font-size: 0.9rem; } /* ============================================ Quick-link Grid (components page) ============================================ */ .quicklink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; } .quicklink-grid a { padding: 1rem; background: var(--bg-light); border-radius: 8px; text-decoration: none; color: var(--text-dark); transition: all 0.3s; } .quicklink-grid a:hover { background: var(--primary-color); color: #fff; }