/* ==========================================================================
   Guide Pages - Additional Styles
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--border-light);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* Guide Layout */
.guide-main {
    min-height: 100vh;
}

.guide-article {
    padding: 3rem 0;
}

.guide-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
}

/* Table of Contents */
.guide-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
}

.guide-toc h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.guide-toc nav ul {
    list-style: none;
}

.guide-toc nav li {
    margin-bottom: 0.5rem;
}

.guide-toc nav a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all var(--transition);
}

.guide-toc nav a:hover,
.guide-toc nav a.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.toc-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* Guide Content */
.guide-content {
    max-width: 800px;
}

.guide-header {
    margin-bottom: 2.5rem;
}

.guide-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-subtle);
    border-radius: 100px;
    margin-bottom: 1rem;
}

.guide-header h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.guide-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.guide-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Guide Widget */
.guide-widget {
    min-height: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Content Sections */
.guide-content section {
    margin-bottom: 3rem;
}

.guide-content h2 {
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    font-size: 1.5rem;
}

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

.guide-content p {
    margin-bottom: 1rem;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.guide-content li strong {
    color: var(--text-primary);
}

/* Info Boxes */
.info-box,
.warning-box,
.tip-box,
.strategy-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.info-box {
    background: rgba(0, 212, 170, 0.08);
    border-left: 4px solid var(--accent);
}

.warning-box {
    background: rgba(255, 165, 2, 0.08);
    border-left: 4px solid var(--warning);
}

.tip-box {
    background: rgba(0, 200, 83, 0.08);
    border-left: 4px solid var(--success);
}

.strategy-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.info-box h4,
.warning-box h4,
.tip-box h4,
.strategy-box h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.info-box p,
.warning-box p,
.tip-box p,
.strategy-box p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.strategy-box ol {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Formula Box */
.formula-box {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    text-align: center;
}

.formula-box code {
    display: block;
    font-size: 1.25rem;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.formula-box p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.level-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.level-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.level-card p {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.level-card.overbought {
    border-top: 3px solid var(--danger);
}

.level-card.overbought .level-number {
    color: var(--danger);
}

.level-card.neutral {
    border-top: 3px solid var(--text-muted);
}

.level-card.oversold {
    border-top: 3px solid var(--success);
}

.level-card.oversold .level-number {
    color: var(--success);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.data-table th,
.data-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--bg-secondary);
}

/* Mistake List */
.mistake-list {
    margin: 1.5rem 0;
}

.mistake-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.mistake-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mistake-item h4 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.mistake-item p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Takeaways Section */
.takeaways-section {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.takeaways-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.takeaway-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.takeaway-item p {
    margin-bottom: 0;
    padding-top: 0.25rem;
}

/* Related Guides */
.related-guides {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-guides h2 {
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.related-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.related-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.related-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

.related-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Comparison Table Styles (for vs pages) */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    background: var(--bg-tertiary);
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
}

.comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.comparison-table tr:hover td {
    background: var(--bg-secondary);
}

.comparison-table .check {
    color: var(--success);
}

.comparison-table .cross {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
    
    .guide-toc {
        display: none;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .guide-article {
        padding: 2rem 0;
    }
    
    .guide-meta-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .data-table {
        font-size: 0.8125rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.625rem 0.75rem;
    }
}

/* Print Styles */
@media print {
    .guide-toc,
    .related-guides,
    .guide-widget {
        display: none;
    }
    
    .guide-layout {
        display: block;
    }
    
    .guide-content {
        max-width: none;
    }
}
