/* ==========================================================================
   GUIDES/ARTICLES CSS - SEO Content Pages
   Extends base.css for long-form article content
   ========================================================================== */

/* --------------------------------------------------------------------------
   Article Layout & Container
   -------------------------------------------------------------------------- */

.guide-page {
    background: var(--bg-dark, #0a0a0f);
    min-height: 100vh;
}

.guide-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.guide-content {
    padding-top: 100px; /* Account for fixed navbar */
    padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   Breadcrumb Navigation
   -------------------------------------------------------------------------- */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent, #00d4aa);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   Article Header
   -------------------------------------------------------------------------- */

.guide-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.guide-meta-item i {
    color: var(--accent, #00d4aa);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Table of Contents
   -------------------------------------------------------------------------- */

.table-of-contents {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.table-of-contents h2 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.toc-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent, #00d4aa);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.toc-list a:hover {
    color: var(--accent, #00d4aa);
}

.toc-list a:hover::before {
    opacity: 1;
}

/* Nested TOC items */
.toc-list .toc-sub {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Article Body - Typography
   -------------------------------------------------------------------------- */

.guide-body {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}

.guide-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 3rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px; /* For anchor links with fixed header */
}

.guide-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 100px;
}

.guide-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.guide-body p {
    margin-bottom: 1.5rem;
}

.guide-body a {
    color: var(--accent, #00d4aa);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.guide-body a:hover {
    opacity: 0.8;
}

/* Lists */
.guide-body ul,
.guide-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.guide-body ul li::marker {
    color: var(--accent, #00d4aa);
}

.guide-body ol li::marker {
    color: var(--accent, #00d4aa);
    font-weight: 600;
}

/* Strong/Bold text */
.guide-body strong {
    color: #ffffff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Blockquotes & Callouts
   -------------------------------------------------------------------------- */

.guide-body blockquote {
    border-left: 4px solid var(--accent, #00d4aa);
    background: rgba(0, 212, 170, 0.05);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Info/Tip callout box */
.callout {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent, #00d4aa);
    margin-bottom: 0.75rem;
}

.callout-header i {
    font-size: 1rem;
}

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

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.guide-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.guide-body th,
.guide-body td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-body th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
}

.guide-body tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Inline CTA Banner
   -------------------------------------------------------------------------- */

.inline-cta {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 150, 120, 0.1) 100%);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

.inline-cta h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.inline-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.inline-cta .cta-button,
.inline-cta button.cta-button {
    display: inline-block;
    background: #00d4aa !important;
    background-color: #00d4aa !important;
    color: #0a0a0f !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.inline-cta .cta-button:hover,
.inline-cta button.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Inline Email Capture Form (Non-Modal)
   -------------------------------------------------------------------------- */

.inline-email-capture {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}

.inline-email-capture h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.inline-email-capture p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.inline-email-capture .email-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
}

.inline-email-capture .email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.inline-email-capture .email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.inline-email-capture .email-input:focus {
    outline: none;
    border-color: rgba(0, 212, 170, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.inline-email-capture .email-submit {
    padding: 0.75rem 1.25rem;
    background: #00d4aa;
    color: #0a0a0f;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.inline-email-capture .email-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.inline-email-capture .email-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #00d4aa;
}

.inline-email-capture .email-message.error {
    color: #ff6b6b;
}

.inline-email-capture .privacy-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .inline-email-capture .email-form {
        flex-direction: column;
    }
    
    .inline-email-capture .email-submit {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */

.guide-faq {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-faq h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.faq-item-guide {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question-guide {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    font-family: inherit;
}

.faq-question-guide:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question-guide::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--accent, #00d4aa);
    transition: transform 0.2s ease;
}

.faq-item-guide.active .faq-question-guide::after {
    transform: rotate(45deg);
}

.faq-answer-guide {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item-guide.active .faq-answer-guide {
    max-height: 500px;
}

.faq-answer-guide-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   End CTA Section
   -------------------------------------------------------------------------- */

.guide-end-cta {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(0, 100, 80, 0.15) 100%);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.guide-end-cta h2 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.guide-end-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.guide-end-cta .cta-button-large,
.guide-end-cta button.cta-button-large {
    display: inline-block;
    background: #00d4aa !important;
    background-color: #00d4aa !important;
    color: #0a0a0f !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.guide-end-cta .cta-button-large:hover,
.guide-end-cta button.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.35);
    color: #0a0a0f !important;
}

/* --------------------------------------------------------------------------
   Related Guides Section
   -------------------------------------------------------------------------- */

.related-guides {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-guides h2 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.related-guides-list {
    display: grid;
    gap: 1rem;
}

.related-guide-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.related-guide-link:hover {
    border-color: rgba(0, 212, 170, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.related-guide-link i {
    color: var(--accent, #00d4aa);
    font-size: 1rem;
}

.related-guide-link span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .guide-content {
        padding-top: 80px;
    }
    
    .guide-header h1 {
        font-size: 1.75rem;
    }
    
    .guide-body {
        font-size: 1rem;
    }
    
    .guide-body h2 {
        font-size: 1.5rem;
    }
    
    .guide-body h3 {
        font-size: 1.2rem;
    }
    
    .table-of-contents {
        padding: 1.25rem 1.5rem;
    }
    
    .inline-cta,
    .guide-end-cta {
        padding: 1.5rem;
    }
    
    .guide-meta {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .guide-container {
        padding: 0 1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .guide-header h1 {
        font-size: 1.5rem;
    }
}

