/* Breadcrumbs */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
}

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

.breadcrumb .flag-icon {
    width: 20px;
    margin-right: 3px;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-gray);
}

/* Guide Header */
.guide-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.guide-header-logo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 12px;
    box-sizing: content-box;
}

.dark .guide-header-logo {
    background: #333;
}

.guide-header h1 {
    font-size: 1.75rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .guide-header h1 {
        font-size: 1.25rem;
    }
    .guide-header-logo {
        width: 72px;
        height: 72px;
    }
}

/* Guide Layout: sidebar TOC + content */
.guide-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

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

/* Mobile TOC */
.guide-toc-mobile {
    display: none;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .guide-toc-mobile {
        display: block;
    }
}

.guide-toc-mobile summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-toc-mobile summary::-webkit-details-marker {
    display: none;
}

.guide-toc-mobile summary::before {
    content: '\25B6';
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.guide-toc-mobile[open] summary::before {
    transform: rotate(90deg);
}

.guide-toc-mobile .toc-list {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 0 0 8px 8px;
}

/* Sticky TOC sidebar */
.guide-toc-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.toc-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.25rem;
}

.toc-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 0.3rem 0.75rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--ruby-red);
    border-left-color: var(--ruby-red);
}

/* Guide content */
.guide-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .guide-content {
        padding: 1.25rem;
    }
}

.guide-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
    scroll-margin-top: 2rem;
}

.guide-content h2:first-child {
    margin-top: 0;
}

.guide-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.guide-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

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

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

.guide-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.guide-content a {
    color: var(--ruby-red);
    text-decoration: none;
}

.guide-content a:hover {
    text-decoration: underline;
}

/* Inline guide icons (replace emoji ✅ 👍 💡 ⚠️) */
.guide-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    position: relative;
    top: -1px;
    flex-shrink: 0;
}

/* Guide summary blockquote */
.guide-summary {
    background: var(--bg-gray);
    border-left: 4px solid var(--ruby-red);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.guide-summary p {
    margin-bottom: 0.5rem;
}

.guide-summary p:last-child {
    margin-bottom: 0;
}

/* Last updated line */
.guide-last-updated {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Horizontal rules between sections */
.guide-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* Quick Reference table */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 0.5rem;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
}

.guide-table td,
.guide-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 40%;
}

/* Cross-references section */
.section-cross-references .section-title {
    font-size: 1.5rem;
}

.cross-ref-card {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.3s, transform 0.2s;
}

.cross-ref-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cross-ref-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 6px;
    box-sizing: content-box;
}

.dark .cross-ref-logo {
    background: #333;
}

.cross-ref-text {
    flex: 1;
    min-width: 0;
}

.cross-ref-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cross-ref-summary {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ─── Pro Tips Gate ─────────────────────────────────────────────────── */

.pro-tips-gate {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    margin: 1.5rem 0;
}

/* H2 heading sits above the blur — visible, scrollable via TOC */
.pro-tips-gate > h2 {
    margin: 0;
    padding: 1.5rem 1.5rem 0;
    font-size: 1.5rem;
    color: var(--text-dark);
    scroll-margin-top: 2rem;
}

/* Real tip content — blurred and non-interactive */
.pro-tips-preview {
    padding: 0 1.5rem 1.5rem;
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
    overflow: hidden;
}

.pro-tips-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255,255,255,0.3) 30%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0.7) 100%
    );
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30%;
    border-radius: 12px;
}

.dark .pro-tips-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(26,26,26,0.3) 30%,
        rgba(26,26,26,0.6) 50%,
        rgba(26,26,26,0.7) 100%
    );
}

.dark .pro-tips-gate {
    border-color: #333;
}

.pro-tips-cta {
    text-align: center;
    padding: 1.5rem 2rem;
    max-width: 440px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.dark .pro-tips-cta {
    background: rgba(30,30,30,0.85);
}

.pro-tips-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pro-tips-cta .download-btn:hover {
    text-decoration: none;
}

.pro-tips-cta p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
