/* ===== Content Page Specific Styles ===== */

/* Code Blocks and Syntax Highlighting */
.code-wrapper {
    position: relative;
    margin: 25px 0;
}

pre {
    background: var(--bg-sidebar);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #E4E4E4;
}

pre code {
    display: block;
    color: #E4E4E4;
}

.inline-code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Copy button is now styled inline in the HTML file */

/* Note Boxes */
.note-box {
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 5px solid;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.note-box-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-box-content {
    line-height: 1.7;
    color: var(--text-secondary);
}

.note-box.info {
    border-left-color: #3498DB;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
}

.note-box.info .note-box-title {
    color: #3498DB;
}

.note-box.tip {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(77, 179, 61, 0.05), rgba(77, 179, 61, 0.1));
}

.note-box.tip .note-box-title {
    color: var(--primary-color);
}

.note-box.warning {
    border-left-color: #F39C12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05), rgba(243, 156, 18, 0.1));
}

.note-box.warning .note-box-title {
    color: #F39C12;
}

.note-box.danger {
    border-left-color: #E74C3C;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(231, 76, 60, 0.1));
}

.note-box.danger .note-box-title {
    color: #E74C3C;
}

.note-box.success {
    border-left-color: #2ECC71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(46, 204, 113, 0.1));
}

.note-box.success .note-box-title {
    color: #2ECC71;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.content-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.content-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: var(--primary-color);
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-section ul,
.content-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Comparison Tables - These are styled inline in HTML now */

/* Tabs - These are styled inline in HTML now */

/* Diagram Container */
.diagram-container {
    margin: 40px 0;
    text-align: center;
}

.diagram-container svg {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    background: var(--bg-primary);
    padding: 20px;
}

.diagram-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Command Blocks */
.command-block {
    background: var(--bg-sidebar);
    color: #4DB33D;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Monaco', monospace;
    font-size: 14px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.command-block::before {
    content: '$';
    margin-right: 10px;
    color: var(--primary-light);
    font-weight: bold;
}

/* Example Boxes - These are styled inline in HTML now */

/* Quiz Styles */
.quiz-container {
    margin: 40px 0;
}

.quiz-question {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.quiz-question h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.quiz-option label {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 15px;
}

.feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.quiz-result {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
    display: none;
    border: 2px solid var(--primary-color);
}

.quiz-result h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.quiz-submit {
    margin-top: 20px;
}

/* Expandable Sections */
.expandable-section {
    margin: 25px 0;
}

.expand-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.expand-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.expandable-content.expanded {
    max-height: 5000px;
    margin-top: 20px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(77, 179, 61, 0.1), rgba(77, 179, 61, 0.2));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Definition List */
.definition-list {
    margin: 30px 0;
}

.definition-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.definition-item:last-child {
    border-bottom: none;
}

.definition-term {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.definition-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Progress Bar */
.progress-container {
    margin: 30px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar-wrapper {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Interview Question Box - This is styled inline in HTML now */

/* Image Placeholders */
.image-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    margin: 30px 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Navigation Buttons - These are styled inline in HTML now */

/* Table of Contents - This is styled inline in HTML now */

/* Search Highlight */
.search-highlight {
    background: yellow;
    color: black;
    padding: 2px 4px;
    border-radius: 3px;
}

[data-theme="dark"] .search-highlight {
    background: #FFD700;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Key-Value Display - This is styled inline in HTML now */

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .breadcrumb,
    .copy-btn,
    .back-to-top,
    .page-navigation,
    .theme-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    body {
        background: white;
        color: black;
    }
    
    pre {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted var(--text-secondary);
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-sidebar);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Additional CSS Variables for Content Styles */
:root {
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --bg-sidebar: #1E293B;
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --primary-color: #00ED64;
    --primary-dark: #00684A;
    --primary-light: #6FCF54;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --border-color: #334155;
}