/* ===== INFO PAGE - Wiki/Guide Layout ===== */

/* --- Left Sidebar Menu --- */
.guide-menu {
    padding: 0;
    overflow-y: auto;
    height: calc(100vh - 70px);
}
.guide-menu-category {
    border-bottom: 1px solid #f0ebe4;
}
.guide-menu-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5D4037;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.guide-menu-category-header:hover {
    background: #FBF0E1;
}
.guide-menu-category-header i.category-icon {
    font-size: 1rem;
    color: #795548;
}
.guide-menu-category-header i.chevron {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s;
    color: #a1887f;
}
.guide-menu-category.open > .guide-menu-category-header i.chevron {
    transform: rotate(90deg);
}
.guide-menu-articles {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.guide-menu-category.open > .guide-menu-articles {
    max-height: 400px;
    overflow-y: auto;
}
.guide-menu-article-link {
    display: block;
    padding: 8px 16px 8px 40px;
    font-size: 0.8rem;
    color: #6d4c41;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.guide-menu-article-link:hover {
    background: #faf5ef;
    color: #3E2723;
}
.guide-menu-article-link.active {
    background: #FBF0E1;
    border-left-color: #5D4037;
    color: #3E2723;
    font-weight: 600;
}

/* --- Middle Column Content --- */
.guide-content-area {
    overflow-y: auto;
    height: calc(100vh - 56px);
    padding: 24px 32px;
}
.guide-content-area h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3E2723;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FBF0E1;
}
.guide-content-area h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5D4037;
    margin-top: 24px;
    margin-bottom: 10px;
}
.guide-content-area h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6d4c41;
    margin-top: 16px;
    margin-bottom: 8px;
}
.guide-content-area p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #424242;
    margin-bottom: 12px;
}
.guide-content-area ul, .guide-content-area ol {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #424242;
    padding-left: 20px;
    margin-bottom: 12px;
}
.guide-content-area li {
    margin-bottom: 6px;
}
.guide-content-area table {
    font-size: 0.85rem;
}

/* Detail trigger links */
.guide-detail-link {
    color: #1565c0;
    text-decoration: underline dotted;
    cursor: pointer;
    font-weight: 500;
}
.guide-detail-link:hover {
    color: #0d47a1;
    text-decoration: underline solid;
}

/* Example blocks */
.guide-example {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.guide-example-bad {
    padding: 12px 16px;
    background: #fff3e0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0e0e0;
}
.guide-example-good {
    padding: 12px 16px;
    background: #e8f5e9;
    font-size: 0.85rem;
}

/* FAQ items */
.guide-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.guide-faq-item h4 {
    padding: 14px 16px;
    margin: 0;
    background: #fafafa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.guide-faq-item h4:hover {
    background: #f5f5f5;
}
.guide-faq-item p {
    padding: 0 16px 14px 16px;
    margin: 0;
    font-size: 0.85rem;
}

/* --- Right Column: Detail/Glossary Panel --- */
.guide-detail-panel {
    overflow-y: auto;
    height: calc(100vh - 70px);
    padding: 0;
}
.guide-detail-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bdbdbd;
    text-align: center;
    padding: 32px;
}
.guide-detail-panel-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.guide-detail-panel-empty span {
    font-size: 0.85rem;
}
.guide-detail-content {
    padding: 20px;
    animation: guideDetailSlideIn 0.25s ease;
}
@keyframes guideDetailSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}
.guide-detail-content .detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #FBF0E1;
}
.guide-detail-content .detail-header h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #3E2723;
    margin: 0;
}
.guide-detail-content .detail-header .btn-close-detail {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.guide-detail-content .detail-header .btn-close-detail:hover {
    color: #333;
}
.guide-detail-content .detail-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #424242;
}
.guide-detail-content .detail-body p { margin-bottom: 10px; }
.guide-detail-content .detail-body ul { padding-left: 18px; }
.guide-detail-content .detail-body li { margin-bottom: 4px; }

/* Welcome screen (no article selected) */
.guide-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #9e9e9e;
    padding: 40px;
}
.guide-welcome i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #d7ccc8;
}
.guide-welcome h3 {
    color: #5D4037;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.guide-welcome p {
    font-size: 0.9rem;
    color: #9e9e9e;
    max-width: 400px;
}

/* Alert in content */
.guide-content-area .alert {
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Badge styles in content - Global override for all badges */
.badge {
    display: inline-block !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
    border-radius: 12px !important;
    margin: 2px 4px 2px 0 !important;
}

.badge-primary {
    background-color: var(--brown-tone, #5D4037) !important;
    color: #ffffff !important;
}

.badge-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.badge-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}

.badge-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

.badge-info {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
}

.badge-light {
    background-color: #f8f9fa !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
}

.badge-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-content-area {
        padding: 16px;
        height: auto;
    }
    .guide-content-area h2 {
        font-size: 1.15rem;
    }
    .guide-content-area h3 {
        font-size: 0.95rem;
    }
    .guide-content-area p, .guide-content-area ul, .guide-content-area ol {
        font-size: 0.85rem;
    }
}
