/* BEGROOMS Documentation Styles */

/* Override body styles for docs */
.docs-body {
    background: linear-gradient(135deg, #0a0a0a 0%, #0d0d0d 50%, #0a0a0a 100%);
    background-attachment: fixed;
    font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Navigation */
.docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ff1493;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.brand-link:hover {
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
}

.brand-icon {
    font-size: 20px;
    animation: pulse-brand 2s infinite;
}

@keyframes pulse-brand {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
}

.nav-subtitle {
    color: #00ff41;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #00ff41;
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.nav-back {
    color: #ff1493 !important;
    border-color: rgba(255, 20, 147, 0.3) !important;
}

.nav-back:hover {
    color: #ffffff !important;
    border-color: rgba(255, 20, 147, 0.6) !important;
    background: rgba(255, 20, 147, 0.1) !important;
}

/* Main Container */
.docs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.6);
    border-right: 1px solid rgba(0, 255, 65, 0.2);
    padding: 30px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.sidebar-section {
    margin-bottom: 40px;
    padding: 0 25px;
}

.sidebar-title {
    color: #00ff41;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
    border-left: 3px solid #00ff41;
    padding-left: 10px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-link {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 15px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(0, 255, 65, 0.1);
    border-left-color: #00ff41;
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.15);
    border-left-color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

/* Main Content */
.docs-content {
    flex: 1;
    padding: 30px 40px;
    max-width: calc(100% - 280px);
}

/* Sections */
.docs-section {
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 20, 147, 0.3);
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #ff1493;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 16px;
    color: #b8b8b8;
    font-style: italic;
    line-height: 1.5;
}

/* Subsections */
.subsection {
    margin-bottom: 50px;
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: #00ff41;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
    border-left: 4px solid #00ff41;
    padding-left: 15px;
}

/* Content Blocks */
.content-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.content-block p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #e0e0e0;
}

.content-block h3 {
    color: #66ff66;
    font-size: 18px;
    margin: 25px 0 15px 0;
    text-shadow: 0 0 5px rgba(102, 255, 102, 0.6);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(255, 20, 147, 0.05));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 6px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-header {
    color: #00ff41;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
}

.info-code {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Code Blocks */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    margin: 25px 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-lang {
    color: #00ff41;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-code-btn {
    background: rgba(255, 20, 147, 0.2);
    border: 1px solid rgba(255, 20, 147, 0.4);
    color: #ff1493;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 20, 147, 0.4);
    border-color: rgba(255, 20, 147, 0.8);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.8);
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background: transparent;
}

.code-block code {
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Source Code Pro', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Code Snippets */
.code-snippet {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #00ff41;
}

/* Endpoint Blocks */
.endpoint-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.http-method {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.http-method.get {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.http-method.post {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.4);
}

.http-method.put {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    border: 1px solid rgba(0, 191, 255, 0.4);
}

.http-method.delete {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.4);
}

.endpoint-path {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 500;
}

/* Architecture Diagram */
.architecture-diagram {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.diagram-title {
    color: #00ff41;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.diagram-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.arch-layer {
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.1), rgba(0, 255, 65, 0.05));
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 6px;
    padding: 15px 20px;
}

.layer-title {
    color: #ff1493;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.layer-components {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.component {
    background: rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.service-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.service-icon {
    font-size: 24px;
}

.service-name {
    color: #00ff41;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.service-description {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(255, 20, 147, 0.2);
    color: #ff1493;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 20, 147, 0.3);
}

/* Protocol Stack */
.protocol-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.protocol-layer {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1), rgba(255, 20, 147, 0.05));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.protocol-layer:last-child {
    border-bottom: none;
}

.layer-name {
    color: #00ff41;
    font-weight: 600;
    font-size: 14px;
}

.layer-desc {
    color: #b8b8b8;
    font-size: 13px;
    font-style: italic;
}

/* Consensus Diagram */
.consensus-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.consensus-phase {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 8px;
}

.phase-number {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.phase-content {
    flex: 1;
}

.phase-title {
    color: #ff1493;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.phase-desc {
    color: #b8b8b8;
    font-size: 12px;
    line-height: 1.5;
}

/* Quickstart Grid */
.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.quickstart-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.quickstart-number {
    background: linear-gradient(135deg, #00ff41, #66ff66);
    color: #000000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.quickstart-content h3 {
    color: #00ff41;
    font-size: 16px;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.quickstart-content p {
    color: #b8b8b8;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Integration Section */
.integration-section {
    margin-bottom: 40px;
}

/* Troubleshooting */
.troubleshooting-item {
    margin-bottom: 30px;
}

.issue-block {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #ff1493;
    padding: 20px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
}

.issue-title {
    color: #ff1493;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.issue-desc p {
    margin-bottom: 10px;
    color: #e0e0e0;
}

.issue-desc strong {
    color: #00ff41;
}

.issue-desc ul {
    margin: 10px 0 10px 20px;
    color: #b8b8b8;
}

.issue-desc li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.issue-desc code {
    background: rgba(0, 0, 0, 0.6);
    color: #00ff41;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

/* Debug Tools */
.debug-tools {
    margin-top: 30px;
}

/* Changelog */
.changelog-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-number {
    color: #00ff41;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.version-date {
    color: #b8b8b8;
    font-size: 14px;
}

.version-type {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.version-type.stable {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.change-category {
    margin-bottom: 20px;
}

.change-category h4 {
    color: #66ff66;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.change-category ul {
    margin: 0 0 0 20px;
    color: #b8b8b8;
}

.change-category li {
    margin-bottom: 5px;
    line-height: 1.5;
    font-size: 13px;
}

/* Footer */
.docs-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    margin-top: 80px;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    color: #ff1493;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 20, 147, 0.6);
}

.footer-desc {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-link {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    color: #00ff41;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: #b8b8b8;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.footer-copyright {
    color: #666666;
    font-size: 12px;
}

/* Security Feature */
.security-feature {
    margin-bottom: 40px;
}

/* Infrastructure Section */
.infra-section {
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    }
    
    .docs-content {
        max-width: 100%;
        padding: 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .nav-brand {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .docs-container {
        padding-top: 120px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .subsection-title {
        font-size: 20px;
    }
    
    .content-block {
        padding: 20px;
    }
    
    .code-block pre {
        padding: 15px;
        font-size: 12px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .consensus-diagram {
        grid-template-columns: 1fr;
    }
    
    .quickstart-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Rate Limiting Styles */
.rate-limit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.rate-limit-tier {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.rate-limit-tier:hover {
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-name {
    color: #00ff41;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.tier-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-badge.free {
    background: rgba(102, 255, 102, 0.2);
    color: #66ff66;
    border: 1px solid rgba(102, 255, 102, 0.4);
}

.tier-badge.pro {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.4);
}

.tier-badge.enterprise {
    background: rgba(255, 20, 147, 0.2);
    color: #ff1493;
    border: 1px solid rgba(255, 20, 147, 0.4);
}

.tier-limits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.limit-type {
    color: #b8b8b8;
    font-size: 13px;
}

.limit-value {
    color: #00ff41;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Scaling Strategy Styles */
.scaling-diagram {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.scaling-tier {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1), rgba(255, 20, 147, 0.05));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.scaling-tier:last-child {
    margin-bottom: 0;
}

.tier-title {
    color: #00ff41;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.tier-components {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid rgba(255, 20, 147, 0.5);
}

.component-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}

.component-spec {
    color: #b8b8b8;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.metric-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(255, 20, 147, 0.5);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.1);
    transform: translateY(-2px);
}

.metric-title {
    color: #b8b8b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.metric-value {
    color: #ff1493;
    font-size: 28px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.6);
    margin-bottom: 5px;
}

.metric-unit {
    color: #66ff66;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.metric-trend {
    color: #00ff41;
    font-size: 11px;
    font-weight: 500;
}

/* Data Flow Styles */
.data-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
}

.flow-stage {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(255, 20, 147, 0.05));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 200px;
    position: relative;
}

.stage-number {
    background: linear-gradient(135deg, #00ff41, #66ff66);
    color: #000000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin: 0 auto 15px auto;
}

.stage-title {
    color: #00ff41;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.stage-desc {
    color: #b8b8b8;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.stage-tech {
    color: #ff1493;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flow-arrow {
    color: #00ff41;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Storage Tiers */
.storage-tiers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.storage-tier {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.storage-tier.hot {
    border-left: 4px solid #ff453a;
}

.storage-tier.warm {
    border-left: 4px solid #ffa500;
}

.storage-tier.cold {
    border-left: 4px solid #00bfff;
}

.tier-label {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 20px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.tier-desc {
    flex: 1;
    padding: 20px;
}

.tier-title {
    color: #00ff41;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.tier-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #b8b8b8;
    font-size: 13px;
    font-weight: 500;
}

.detail-value {
    color: #ffffff;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .rate-limit-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .storage-tier {
        flex-direction: column;
    }
    
    .tier-label {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        min-width: auto;
        padding: 15px 20px;
    }
    
    .component-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Print styles */
@media print {
    .docs-nav,
    .docs-sidebar,
    .copy-code-btn {
        display: none !important;
    }
    
    .docs-container {
        flex-direction: column;
    }
    
    .docs-content {
        max-width: 100%;
        padding: 0;
    }
    
    .code-block {
        break-inside: avoid;
    }
}
