/* Guide Page Styles */

/* Guide Hero Section */
.guide-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 2rem 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.guide-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.guide-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.guide-breadcrumb a:hover {
    opacity: 0.7;
}

.guide-breadcrumb i {
    font-size: 0.75rem;
}

.guide-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.guide-subtitle {
    font-size: 1.375rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.guide-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-meta i {
    font-size: 1rem;
}

/* Guide Content Layout */
.guide-content {
    padding: 4rem 2rem;
    background: var(--white);
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}

/* Sidebar */
.guide-sidebar {
    position: sticky;
    top: 100px;
}

.table-of-contents {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.table-of-contents h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.25rem;
}

.guide-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 16px;
    color: var(--white);
    text-align: center;
}

.guide-cta h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.guide-cta p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: #efefef;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Article Content */
.guide-article {
    max-width: 800px;
}

.article-section {
    margin-bottom: 4rem;
}

.article-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.article-section h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.article-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-section h3::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.article-section h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.article-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-section p:first-of-type {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
}

.article-section ul,
.article-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-section li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1rem;
    position: relative;
}

.article-section ul li::marker {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.article-section ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.article-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.article-section a:hover {
    border-bottom-color: var(--primary-color);
}

.article-section code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-section pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 2px solid #334155;
}

.article-section pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-section blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.article-section blockquote p {
    margin-bottom: 0;
}

/* Highlight first paragraph after h2 */
.article-section h2 + p {
    font-size: 1.25rem;
    color: #475569;
    font-weight: 400;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    transition: all 0.3s;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.info-box-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.info-box-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.info-box-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    padding: 0;
    border: none;
}

.info-box-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: #475569;
}

/* Example Boxes */
.example-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #fbbf24;
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.example-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.example-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.example-box h4::before {
    content: '💡';
    font-size: 1.5rem;
}

.example-box p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: #78350f;
    position: relative;
    z-index: 1;
}

/* Comparison List */
.comparison-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
}

.comparison-list li {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.comparison-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.comparison-list li strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.comparison-list li:nth-child(1) {
    border-left-color: #10b981;
}

.comparison-list li:nth-child(1) strong {
    color: #10b981;
}

.comparison-list li:nth-child(2) {
    border-left-color: #f59e0b;
}

.comparison-list li:nth-child(2) strong {
    color: #f59e0b;
}

.comparison-list li:nth-child(3) {
    border-left-color: #ef4444;
}

.comparison-list li:nth-child(3) strong {
    color: #ef4444;
}

/* Next Steps */
.next-steps {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3.5rem;
    border-radius: 20px;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.next-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.next-steps h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
}

.next-steps h3::before {
    display: none;
}

.next-steps > p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.next-steps-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.next-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.next-step-link:hover {
    transform: translateY(-8px);
    border-color: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.next-step-link i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-step-link span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Related Guides */
.related-guides {
    padding: 6rem 2rem;
    background: var(--light-bg);
}

.related-guides h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-guide-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.related-guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-guide-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.related-guide-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.related-guide-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.related-guide-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.coming-soon {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .guide-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .guide-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .guide-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .guide-hero h1 {
        font-size: 2.5rem;
    }

    .guide-subtitle {
        font-size: 1.125rem;
    }

    .guide-meta {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .guide-content {
        padding: 3rem 1.5rem;
    }

    .guide-sidebar {
        grid-template-columns: 1fr;
    }

    .article-section h2 {
        font-size: 1.875rem;
    }

    .article-section h3 {
        font-size: 1.5rem;
    }

    .article-section p,
    .article-section li {
        font-size: 1rem;
    }

    .info-box {
        flex-direction: column;
        padding: 1.5rem;
    }

    .next-steps {
        padding: 2rem;
    }

    .next-steps-links {
        grid-template-columns: 1fr;
    }

    .related-guides {
        padding: 4rem 0rem;
    }

    .related-guides h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .guide-hero h1 {
        font-size: 2rem;
    }

    .guide-subtitle {
        font-size: 1rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section h3 {
        font-size: 1.25rem;
    }
}
