/* ============================================
   QUANTUM REPOSITORY - GUIDE PAGE STYLES
   Consolidated from inline styles across all guide pages
   ============================================ */

/* Full-width layout */
body {
    margin: 0;
    padding: 0;
}

.guide-container {
    width: 95%;
    max-width: none !important;
    margin: 2rem auto;
    padding: 0 2.5%;
}

.guide-content {
    width: 100%;
    max-width: none !important;
}

.guide-content article {
    line-height: 1.8;
    font-size: 1.15rem;
    width: 100%;
    padding-top: 1.5rem;
}

.guide-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.guide-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    font-size: 2rem;
}

.guide-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.guide-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.guide-content ul, .guide-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
    line-height: 1.8;
}

.guide-content li {
    margin-bottom: 0.75rem;
}

.guide-content code {
    background: #2d2d2d;
    color: #f0f0f0;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
}

.guide-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.guide-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Override conflicting max-width from main.css */
.guide-container .container {
    max-width: none !important;
    width: 100%;
}

.site-header .container {
    max-width: 95%;
    width: 95%;
}

.breadcrumbs .container {
    max-width: 95%;
    width: 95%;
}

/* ============================================
   Python code block styles
   (used by code/*.html pages)
   ============================================ */

.guide-content .code-block,
.guide-content .output-block {
    background: #202020;
    overflow: auto;
    width: auto;
    border: solid gray;
    border-width: .1em .1em .1em .8em;
    padding: .2em .6em;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.guide-content .code-block pre,
.guide-content .output-block pre {
    margin: 0;
    line-height: 125%;
    color: #d0d0d0;
}

/* ============================================
   Scenario & command box styles
   (used by advanced CISCO guide pages)
   ============================================ */

.scenario-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.scenario-box h3 {
    margin-top: 0;
    color: white;
    font-size: 1.8rem;
}

.scenario-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.scenario-box ul {
    margin: 1rem 0;
}

.scenario-box li {
    margin-bottom: 0.75rem;
}

.command-box {
    background: #1e1e1e;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.command-box h4 {
    color: #4CAF50;
    margin-top: 0;
    font-size: 1.2rem;
}

/* ============================================
   Reading Progress Bar
   ============================================ */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 10000;
    transition: width 0.2s;
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    display: flex;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .guide-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .guide-content h2 {
        font-size: 1.5rem;
    }

    .guide-content h3 {
        font-size: 1.2rem;
    }

    .breadcrumbs .container {
        padding: 0 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .site-header,
    .breadcrumbs,
    .guide-footer,
    .back-to-top,
    .site-footer,
    .reading-progress-bar {
        display: none !important;
    }

    .guide-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .guide-content {
        border: none;
        padding: 0;
    }

    .guide-content img {
        max-width: 80%;
        page-break-inside: avoid;
    }
}

/* Fix for white class used in older content */
.guide-content .white {
    color: var(--heading-text) !important;
}
