/* Common Guide Styling */

.guide-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.guide-main {
    padding: 2rem;
}

.guide-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background: var(--black-card, #ffffff);
    border: 1px solid var(--black-border, #e0e0e0);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-section h4 {
    color: var(--text-primary, #0f172a);
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color, #667eea);
    padding-bottom: 0.5rem;
}

.sidebar-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

.sidebar-section a {
    color: var(--link-color, #3b82f6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-section a:hover {
    color: var(--link-hover, #1d4ed8);
    text-decoration: underline;
}

.sidebar-action-buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--black-border, #e0e0e0);
}

.sidebar-action-buttons button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.btn-share {
    background: var(--btn-primary-bg, linear-gradient(135deg, #3b82f6, #1e40af));
    color: white;
}

.btn-share:hover {
    opacity: 0.9;
}

.btn-bookmark {
    background: var(--black-card2, #ffffff);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--black-border, #e0e0e0);
}

.btn-bookmark:hover {
    background: var(--black-card, #ffffff);
}

.toc-box {
    background: var(--black, #08041a);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.toc-box h3 {
    margin-top: 0;
    color: var(--text-primary, #0f172a);
}

.toc-box ol {
    margin: 0;
    padding-left: 1.5rem;
}

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

.toc-box a {
    color: var(--link-color, #3b82f6);
    text-decoration: none;
}

.toc-box a:hover {
    text-decoration: underline;
}

.disclaimer-box {
    background: var(--black, #08041a);
    border-left: 4px solid var(--accent-color, #3b82f6);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.disclaimer-box h3 {
    margin-top: 0;
    color: var(--text-primary, #0f172a);
}

.disclaimer-box p {
    color: var(--text-secondary, #334155);
    margin: 0.5rem 0;
    line-height: 1.6;
}

.guide-section {
    margin: 2rem 0;
}

.guide-section h2 {
    margin-top: 2rem;
    color: var(--text-primary, #0f172a);
    border-bottom: 2px solid var(--primary-color, #667eea);
    padding-bottom: 0.5rem;
}

.guide-section h3 {
    color: var(--text-primary, #0f172a);
    margin-top: 1.5rem;
}

.guide-section p {
    color: var(--text-secondary, #334155);
    line-height: 1.8;
    margin: 1rem 0;
}

.guide-section ul, .guide-section ol {
    padding-left: 1.5rem;
    color: var(--text-secondary, #334155);
}

.guide-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.guide-section strong {
    color: var(--text-primary, #0f172a);
}

.ad-placement {
    margin: 2rem 0;
    text-align: center;
}

.view-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.view-btn {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    border: 2px solid var(--primary-color, #667eea);
    background: transparent;
    color: var(--primary-color, #667eea);
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--primary-color, #667eea);
    color: white;
    border: none;
}

.view-btn:hover {
    opacity: 0.8;
}

#guide-view {
    display: grid;
    gap: 1rem;
}

#tags-view {
    display: none;
    gap: 1.5rem;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tag-card {
    background: var(--black-card, #ffffff);
    border: 1px solid var(--black-border, #e0e0e0);
    border-radius: 8px;
    padding: 1.5rem;
}

.tag-card h4 {
    color: var(--text-primary, #0f172a);
    margin-top: 0;
}

.tag-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-card li {
    color: var(--text-secondary, #334155);
    padding: 4px 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-content-wrapper {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .guide-main {
        padding: 1.5rem;
    }

    .tags-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .guide-main {
        padding: 1rem;
    }

    .sidebar-section {
        padding: 1rem;
    }

    .view-buttons {
        flex-direction: column;
    }

    .view-btn {
        width: 100%;
    }
}
