/* ============================================
   GUIDE PAGE STYLES — Premium Blog Layout
   ============================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #7b2ff7, #ff79c6);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Guide Hero */
.guide-hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem 3rem;
    margin-bottom: 3rem;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.15), rgba(123, 47, 247, 0.15), rgba(255, 121, 198, 0.08));
    border: 1px solid var(--border);
}

.guide-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.guide-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.guide-hero-content {
    position: relative;
    z-index: 1;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(100, 108, 255, 0.15);
    border: 1px solid rgba(100, 108, 255, 0.3);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.guide-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), #7b2ff7, #ff79c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Guide Layout: Content + Sidebar */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

/* Table of Contents — Sticky Sidebar */
.guide-toc {
    position: sticky;
    top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.guide-toc h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.25rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--accent);
    background: rgba(100, 108, 255, 0.08);
    border-left-color: var(--accent);
}

.toc-list a.active {
    color: var(--accent);
    background: rgba(100, 108, 255, 0.12);
    border-left-color: var(--accent);
    font-weight: 600;
}

/* Guide Sections */
.guide-content {
    min-width: 0;
}

.guide-section {
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.6s ease;
}

.guide-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #7b2ff7);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(100, 108, 255, 0.3);
}

.guide-section h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.guide-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 1rem;
}

.guide-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.guide-text strong {
    color: var(--text);
    font-weight: 600;
}

/* Infographic Image Container */
.infographic-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 2rem 0;
    background: var(--surface);
    box-shadow: 0 8px 32px var(--shadow);
}

.infographic-container img {
    width: 100%;
    height: auto;
    display: block;
}

.infographic-caption {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(100, 108, 255, 0.03);
}

/* Stat Cards Grid */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #7b2ff7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(100, 108, 255, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.stat-card-sublabel {
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Comparison Table */
.comparison-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 2rem 0;
    box-shadow: 0 4px 20px var(--shadow);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--accent), #7b2ff7);
    color: white;
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.comparison-table tbody tr {
    background: var(--surface);
    transition: all 0.2s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--surface-hover);
}

.comparison-table tbody tr:hover {
    background: rgba(100, 108, 255, 0.06);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.wpm-badge {
    display: inline-block;
    background: rgba(100, 108, 255, 0.12);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Pain Point Cards */
.pain-points-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pain-point-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.pain-point-card:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(100, 108, 255, 0.15);
}

.pain-point-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.15), rgba(123, 47, 247, 0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.pain-point-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.pain-point-problem {
    color: var(--error);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.pain-point-solution {
    color: var(--correct);
    font-size: 0.9rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    line-height: 1.6;
}

.pain-point-problem span,
.pain-point-solution span {
    color: var(--text-dim);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    counter-reset: step-counter;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    counter-increment: step-counter;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(100, 108, 255, 0.2);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #7b2ff7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(100, 108, 255, 0.4);
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
    color: var(--text);
}

.step-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-dim);
}

.step-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Callout Box */
.callout-box {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.08), rgba(123, 47, 247, 0.05));
    border: 1px solid rgba(100, 108, 255, 0.2);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.callout-box strong {
    color: var(--accent);
}

.callout-box.tip {
    border-left-color: var(--correct);
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.06), rgba(80, 250, 123, 0.02));
    border-color: rgba(80, 250, 123, 0.2);
}

.callout-box.tip strong {
    color: var(--correct);
}

.callout-box.warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(255, 184, 108, 0.06), rgba(255, 184, 108, 0.02));
    border-color: rgba(255, 184, 108, 0.2);
}

.callout-box.warning strong {
    color: var(--warning);
}

/* Jobs Requirements Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(100, 108, 255, 0.15);
}

.job-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.job-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.job-card-wpm {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.job-card-accuracy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Guide FAQ */
.guide-faq {
    margin: 2rem 0;
}

.guide-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-faq-item:hover {
    border-color: var(--accent);
}

.guide-faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(100, 108, 255, 0.15);
}

.guide-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    gap: 1rem;
}

.guide-faq-q:hover {
    background: var(--surface-hover);
}

.guide-faq-q h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.guide-faq-toggle {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-faq-item.active .guide-faq-toggle {
    transform: rotate(45deg);
}

.guide-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.guide-faq-a-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 0.95rem;
}

.guide-faq-a-inner strong {
    color: var(--accent);
}

/* Guide CTA */
.guide-cta {
    text-align: center;
    padding: 3.5rem 2rem;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.12), rgba(123, 47, 247, 0.12));
    border: 2px solid var(--accent);
    border-radius: 24px;
    margin-top: 3rem;
}

.guide-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-cta p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.guide-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.guide-cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--accent), #7b2ff7);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(100, 108, 255, 0.4);
}

.guide-cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 108, 255, 0.5);
}

.guide-cta-buttons .btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Key Takeaway Box */
.key-takeaway {
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.key-takeaway::before {
    content: '💡';
    position: absolute;
    top: -16px;
    left: 1.5rem;
    font-size: 1.5rem;
    background: var(--bg);
    padding: 0 0.5rem;
}

.key-takeaway h4 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.key-takeaway p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Animated Counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: countUp 0.6s ease forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Separator Divider */
.guide-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 3rem 0;
    opacity: 0.3;
}

/* Affiliate Disclaimer */
.affiliate-disclaimer {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(100, 108, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.affiliate-disclaimer strong {
    color: var(--text);
}

.callout-box a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.callout-box a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: relative;
        top: 0;
        order: -1;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 2rem;
    }

    .guide-hero-subtitle {
        font-size: 1.05rem;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .guide-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pain-point-card {
        grid-template-columns: 1fr;
    }

    .pain-point-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .guide-cta h2 {
        font-size: 1.75rem;
    }

    .guide-meta {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .guide-hero {
        padding: 2.5rem 1.5rem 2rem;
    }

    .guide-cta-buttons {
        flex-direction: column;
    }

    .guide-cta-buttons .btn-primary,
    .guide-cta-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}