/**
 * Documentation Page Styles
 * Following ÉMERGENCE design system
 */

.documentation-page {
    min-height: 100% !important;
    height: auto !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 15, 35, 0.98)) !important;
    padding: 0 !important;
    overflow-y: visible !important;
    width: 100% !important;
}

/* Header */
.doc-header {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(139, 92, 246, 0.12));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 24px 32px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.doc-header-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.98);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(56, 189, 248, 0.3);
}

.doc-subtitle {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.7);
    margin: 0;
    font-weight: 500;
}

/* Quick Navigation */
.doc-quick-nav {
    display: flex;
    gap: 8px;
    padding: 4px 32px 16px 32px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.doc-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.doc-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.doc-nav-link:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(56, 189, 248, 0.4);
    color: rgba(56, 189, 248, 0.95);
    transform: translateY(-1px);
}

/* Content */
.doc-content {
    padding: 0 32px 40px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sections */
.doc-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.doc-section h2 {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.98);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.doc-section h2 svg {
    flex-shrink: 0;
}

.doc-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    margin: 24px 0 16px 0;
}

.doc-section h3 svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

.doc-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: rgba(56, 189, 248, 0.95);
    margin: 16px 0 10px 0;
}

.doc-section p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 12px;
}

.doc-section ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.doc-section li {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.85);
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.doc-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(56, 189, 248, 0.7);
    font-weight: 600;
}

.doc-section code {
    background: rgba(15, 23, 42, 0.8);
    color: rgba(56, 189, 248, 0.95);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 40px;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(56, 189, 248, 0.9);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: rgba(56, 189, 248, 0.95);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 2px;
}

.stat-detail {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.6);
}

/* Architecture Diagram */
.arch-subsection {
    margin-bottom: 28px;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
}

.arch-layer {
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.2s ease;
}

.arch-layer:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.arch-layer-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(56, 189, 248, 0.95);
    margin-bottom: 12px;
    text-align: center;
}

.arch-components {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.arch-comp {
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 13px;
    font-weight: 500;
}

.arch-arrow {
    text-align: center;
    font-size: 24px;
    color: rgba(56, 189, 248, 0.5);
    margin: 6px 0;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.module-card {
    padding: 18px;
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.module-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
}

.module-card .module-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.module-card .module-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(56, 189, 248, 0.9);
}

.module-card .module-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    margin-bottom: 6px;
    display: block;
}

.module-card .module-desc {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.65);
}

/* Service List */
.service-list {
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 28px;
}

.service-list li {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.service-list li:last-child {
    border-bottom: none;
}

/* Dependencies Tables */
.dep-category {
    margin-bottom: 36px;
}

.dep-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

.dep-table thead {
    background: rgba(15, 23, 42, 0.9);
}

.dep-table th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: rgba(56, 189, 248, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dep-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dep-table tr:last-child td {
    border-bottom: none;
}

.dep-table tr:hover {
    background: rgba(56, 189, 248, 0.05);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tech-card {
    padding: 20px;
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tech-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
}

.tech-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: rgba(56, 189, 248, 0.95);
}

/* Observability Grid */
.obs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.obs-card {
    padding: 20px;
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.obs-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
}

.obs-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: rgba(56, 189, 248, 0.95);
}

/* Genesis Section */
.genesis-content {
    margin-top: 20px;
}

.genesis-intro {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.genesis-intro p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

.genesis-intro strong {
    color: rgba(56, 189, 248, 0.95);
    font-weight: 700;
}

.genesis-intro em {
    color: rgba(139, 92, 246, 0.9);
    font-style: italic;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 16px 0;
    margin: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.5), rgba(139, 92, 246, 0.5));
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: rgba(56, 189, 248, 0.95);
    flex-shrink: 0;
    z-index: 1;
    gap: 3px;
}

.marker-icon {
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.marker-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(56, 189, 248, 0.9);
}

.marker-date {
    font-size: 10px;
    font-weight: 600;
    color: rgba(56, 189, 248, 0.85);
    text-align: center;
    line-height: 1.2;
}

.marker-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(56, 189, 248, 0.95);
    text-align: center;
    line-height: 1.2;
}

.timeline-content {
    flex: 1;
    padding: 20px;
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    margin-top: 8px;
}

.timeline-content h4 {
    margin-top: 0;
    color: rgba(226, 232, 240, 0.95);
    font-size: 16px;
}

.timeline-content p {
    margin: 0 0 12px 0;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.7;
    font-size: 13px;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.timeline-content ul {
    margin: 10px 0;
    padding-left: 20px;
    color: rgba(226, 232, 240, 0.7);
}

.timeline-content li {
    margin: 6px 0;
    line-height: 1.6;
    font-size: 13px;
}

.timeline-content code {
    background: rgba(56, 189, 248, 0.15);
    color: rgba(56, 189, 248, 0.95);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.timeline-content strong {
    color: rgba(56, 189, 248, 0.95);
    font-weight: 600;
}

.timeline-content em {
    color: rgba(139, 92, 246, 0.85);
    font-style: italic;
}

/* Values Grid */
.genesis-values {
    margin: 32px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.value-card {
    padding: 20px;
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.value-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

.value-icon {
    font-size: 40px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(56, 189, 248, 0.9);
}

.value-card h4 {
    margin: 0 0 10px 0;
    color: rgba(226, 232, 240, 0.95);
    font-size: 15px;
}

.value-card p {
    margin: 0;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.7);
}

/* Author Section */
.author-section {
    margin-top: 32px;
}

.author-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
}

.author-info h4 {
    font-size: 20px;
    color: rgba(56, 189, 248, 0.95);
    margin: 0 0 16px 0;
}

.author-info p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.85);
}

.author-dedication {
    font-style: italic;
    color: rgba(226, 232, 240, 0.75);
    border-left: 3px solid rgba(56, 189, 248, 0.4);
    padding-left: 16px;
    margin-top: 16px;
}

.author-insight {
    font-style: italic;
    color: rgba(56, 189, 248, 0.85);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
}

/* Vigilance Section */
.vigilance-section {
    margin: 32px 0;
    padding: 24px;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 16px;
}

.vigilance-section h3 {
    color: rgba(251, 146, 60, 0.95);
    margin-top: 0;
}

.vigilance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.vigilance-card {
    padding: 20px;
    background: rgba(11, 18, 32, 0.85);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 10px;
}

.vigilance-card h4 {
    color: rgba(251, 146, 60, 0.95);
    margin: 0 0 10px 0;
    font-size: 15px;
}

.vigilance-card p {
    color: rgba(226, 232, 240, 0.75);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.vigilance-note {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
    padding: 14px 16px;
    background: rgba(11, 18, 32, 0.6);
    border-left: 3px solid rgba(251, 146, 60, 0.5);
    border-radius: 6px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .doc-header {
        padding: 20px 16px;
    }

    .doc-header-content h1 {
        font-size: 24px;
    }

    .doc-subtitle {
        font-size: 13px;
    }

    .doc-quick-nav {
        padding: 0 16px 16px 16px;
        gap: 6px;
    }

    .doc-nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .doc-content {
        padding: 0 16px 32px 16px;
    }

    .doc-section {
        margin-bottom: 32px;
    }

    .doc-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .doc-section h3 {
        font-size: 16px;
        margin: 20px 0 12px 0;
    }

    .stats-grid,
    .modules-grid,
    .tech-grid,
    .obs-grid,
    .values-grid,
    .vigilance-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }

    .marker-icon {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-content {
        padding: 16px;
    }

    .dep-table {
        font-size: 12px;
    }

    .dep-table th,
    .dep-table td {
        padding: 10px;
    }
}

/* Modal Specific Styles */
.documentation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2147483646 !important;
    backdrop-filter: blur(4px);
}

.documentation-modal-container {
    background: rgba(11, 18, 32, 0.98) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    border-radius: 20px !important;
    max-width: 95vw !important;
    width: 1600px !important;
    max-height: 95vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    z-index: 2147483647 !important;
}

.documentation-modal-body {
    padding: 0 !important;
    overflow-y: auto !important;
    flex: 1 !important;
    background: rgba(11, 18, 32, 0.98) !important;
    max-height: calc(95vh - 80px) !important;
}

.documentation-modal-body .documentation-page {
    background: transparent !important;
    padding: 0 !important;
}

/* Scrollbar */
.documentation-page::-webkit-scrollbar,
.documentation-modal-body::-webkit-scrollbar {
    width: 8px;
}

.documentation-page::-webkit-scrollbar-track,
.documentation-modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
}

.documentation-page::-webkit-scrollbar-thumb,
.documentation-modal-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.documentation-page::-webkit-scrollbar-thumb:hover,
.documentation-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* Tutorial Section */
.tutorial-intro {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

.tutorial-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.85);
    margin: 0;
}

.tutorial-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tutorial-guide-card {
    background: rgba(11, 18, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tutorial-guide-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.guide-icon {
    font-size: 32px;
    line-height: 1;
}

.guide-header h3 {
    margin: 0;
    font-size: 18px;
    color: rgba(226, 232, 240, 0.95);
}

.guide-summary {
    color: rgba(226, 232, 240, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 auto 0;
    flex-grow: 1;
}

.btn-expand-guide {
    background: linear-gradient(to right, #4c90f0, #5b74d8);
    border: none;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 16px;
    flex-shrink: 0;
}

.btn-expand-guide:hover {
    background: linear-gradient(to right, #5b9ff5, #6a83dd);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-expand-guide:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Expanded Guide Container (Full Width) */
.guide-expanded-container {
    background: rgba(11, 18, 32, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(139, 92, 246, 0.08));
}

.guide-expanded-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guide-expanded-icon {
    font-size: 32px;
    line-height: 1;
}

.guide-expanded-title h3 {
    margin: 0;
    font-size: 24px;
    color: rgba(226, 232, 240, 0.95);
    font-weight: 600;
}

.btn-close-guide {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(248, 113, 113, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-guide:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.guide-expanded-content {
    padding: 32px;
    max-height: 600px;
    overflow-y: auto;
}

.guide-expanded-content::-webkit-scrollbar {
    width: 8px;
}

.guide-expanded-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
}

.guide-expanded-content::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.guide-expanded-content::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* Guide Content Styles */
.guide-section {
    margin-bottom: 32px;
}

.guide-section h3 {
    color: rgba(56, 189, 248, 0.95);
    font-size: 18px;
    margin: 0 0 16px 0;
}

.guide-section h4 {
    color: rgba(226, 232, 240, 0.95);
    font-size: 16px;
    margin: 24px 0 12px 0;
}

.guide-section p {
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.7;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.guide-section ul,
.guide-section ol {
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.7;
    font-size: 14px;
    margin: 12px 0;
    padding-left: 24px;
}

.guide-section li {
    margin: 8px 0;
}

.guide-section strong {
    color: rgba(56, 189, 248, 0.95);
    font-weight: 600;
}

.guide-section code {
    background: rgba(56, 189, 248, 0.15);
    color: rgba(56, 189, 248, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.guide-section kbd {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: rgba(226, 232, 240, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.guide-card {
    background: rgba(11, 18, 32, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.guide-card h4 {
    margin-top: 0;
    color: rgba(56, 189, 248, 0.95);
}

.guide-example {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.guide-example strong {
    color: rgba(139, 92, 246, 0.95);
}

.guide-example code {
    display: block;
    background: rgba(11, 18, 32, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: rgba(226, 232, 240, 0.9);
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
}

.guide-tip {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.guide-tip h4 {
    margin-top: 0;
    color: rgba(34, 197, 94, 0.95);
}

@media (max-width: 768px) {
    .tutorial-guides-grid {
        grid-template-columns: 1fr;
    }
}
