/* CSS for index_how_to_win_the_buybox_newww.html */

* { font-family: 'Inter', sans-serif; }
    
    /* Smooth Scroll */
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
    
    /* Enhanced Accessibility */
    :focus-visible { outline: 3px solid #046bfc; outline-offset: 2px; border-radius: 4px; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    
    /* Simple AOS Animations */
    [data-aos] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
    [data-aos="fade-up"] { transform: translateY(30px); }
    [data-aos="fade-in"] { transform: translateY(0); }
    [data-aos].aos-animate { opacity: 1; transform: translateY(0); }
    
    /* TOC Active State */
    .toc-link { color: #64748b; transition: all 0.2s ease; display: block; padding: 0.5rem 0; border-left: 2px solid transparent; padding-left: 1rem; }
    .toc-link:hover { color: #046bfc; border-left-color: #046bfc; background: rgba(4, 107, 252, 0.05); }
    .toc-link.active { color: #046bfc !important; border-left-color: #046bfc !important; background: rgba(4, 107, 252, 0.08); font-weight: 600; }
    
    /* Touch Targets (min 48px) */
    @media (max-width: 1024px) {
        .toc-link, #mobileTocContent a { min-height: 48px; display: flex; align-items: center; }
    }
    
    /* Mobile Optimizations */
    @media (max-width: 768px) {
        /* Larger touch targets */
        .faq-question { min-height: 56px; padding: 1rem 1.25rem; }
        .strategy-card, .factor-card, .sm-feature { padding: 1.25rem; }
        .related-card { min-height: 48px; }
        
        /* Bottom padding for sticky CTA */
        body { padding-bottom: 80px; }
        
        /* Improved spacing */
        .article-content section { scroll-margin-top: 80px; }
        
        /* Swipe hint */
        .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; background: rgba(4, 107, 252, 0.05); border-radius: 0.75rem; margin-bottom: 1rem; }
        .swipe-hint span { font-size: 0.875rem; color: #64748b; }
        
        /* Horizontal scroll for cards */
        .factor-grid-mobile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .factor-grid-mobile::-webkit-scrollbar { display: none; }
        .factor-grid-mobile > * { scroll-snap-align: start; flex: 0 0 85%; min-width: 280px; }
    }
    
    /* Copy Link Toast */
    .copy-toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: #04143d; color: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 9999; box-shadow: 0 4px 20px rgba(4, 20, 61, 0.3); }
    .copy-toast.visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    
    /* Copy Link Button */
    .copy-link-btn { position: relative; cursor: pointer; }
    .copy-link-btn.copied { background: #10b981 !important; }
    .copy-link-btn.copied svg { color: white !important; }
    
    /* Back to Top Button */
    .back-to-top { position: fixed; bottom: 100px; right: 24px; width: 48px; height: 48px; background: #046bfc; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(4,107,252,0.3); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; z-index: 50; cursor: pointer; border: none; }
    .back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
    .back-to-top:hover { background: #0356c9; transform: scale(1.1); }
    @media (max-width: 768px) { .back-to-top { bottom: 90px; right: 16px; } }
    
    /* Definition Box */
    .definition-box { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 2px solid #0ea5e9; border-radius: 1rem; padding: 1.5rem; margin: 1.5rem 0; }
    .definition-box .term { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #0284c7; font-weight: 700; margin-bottom: 0.5rem; }
    .definition-box .definition { font-size: 1.1rem; color: #0c4a6e; font-weight: 500; line-height: 1.6; }

    /* Reading Progress Bar */
    .reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: linear-gradient(90deg, #046bfc, #ff9900, #10b981); z-index: 9999; transition: width 0.1s ease; }

    /* Hero Blob Background */
    .hero-section { position: relative; overflow: hidden; }
    .hero-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.8; pointer-events: none; z-index: 0; }
    .hero-blob-1 { width: 600px; height: 600px; background: rgba(4, 107, 252, 0.35); top: -200px; left: -150px; }
    .hero-blob-2 { width: 500px; height: 500px; background: rgba(255, 153, 0, 0.25); top: 50px; right: -100px; }
    .hero-blob-3 { width: 400px; height: 400px; background: rgba(16, 185, 129, 0.2); bottom: -100px; left: 30%; }
    @media (max-width: 768px) {
        .hero-blob { opacity: 0.4; filter: blur(120px); }
        .hero-blob-1 { width: 350px; height: 350px; top: -150px; left: -100px; }
        .hero-blob-2 { width: 300px; height: 300px; top: 0; right: -80px; }
        .hero-blob-3 { width: 250px; height: 250px; bottom: -80px; }
    }
    .hero-content { position: relative; z-index: 10; }
    .hero-grid { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(4, 107, 252, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(4, 107, 252, 0.03) 1px, transparent 1px); background-size: 60px 60px; z-index: 1; }

    /* Article Styles */
    .article-content h2 { display: block !important; color: #04143d !important; font-weight: 700 !important; font-size: 1.75rem !important; line-height: 1.3 !important; margin-top: 3rem !important; margin-bottom: 1.25rem !important; padding-bottom: 0.5rem !important; border-bottom: 3px solid #046bfc !important; }
    .article-content > section:first-child h2:first-child { margin-top: 0 !important; }
    @media (max-width: 768px) { .article-content h2 { font-size: 1.5rem !important; } }
    .article-content h3 { display: block; color: #04143d; font-weight: 600; font-size: 1.35rem; line-height: 1.4; margin-top: 2rem; margin-bottom: 1rem; }
    .article-content p { color: #475569; line-height: 1.8; margin-bottom: 1.25rem; }
    .article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
    .article-content li { color: #475569; line-height: 1.8; margin-bottom: 0.75rem; }
    .article-content strong { color: #04143d; font-weight: 600; }
    .article-content a:not([class]), .faq-answer-content a:not([class]) { color: #046bfc; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
    .article-content a:not([class]):hover, .faq-answer-content a:not([class]):hover { text-decoration-style: solid; }

    /* Feature Cards */
    .feature-card { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 15px rgba(4, 20, 61, 0.08); border: 1px solid rgba(4, 107, 252, 0.1); transition: all 0.3s ease; }
    .feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(4, 107, 252, 0.15); }

    /* Highlight Box */
    .highlight-box { background: linear-gradient(135deg, rgba(4, 107, 252, 0.08) 0%, rgba(4, 107, 252, 0.03) 100%); border-left: 4px solid #046bfc; padding: 1.5rem; border-radius: 0 1rem 1rem 0; margin: 2rem 0; }
    .highlight-box p { margin-bottom: 0 !important; }
    .highlight-box.warning { background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(255, 153, 0, 0.03) 100%); border-left-color: #ff9900; }
    .highlight-box.danger { background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.03) 100%); border-left-color: #dc2626; }
    .highlight-box.success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%); border-left-color: #10b981; }

    /* Key Takeaways */
    .key-takeaways { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border: 2px solid #046bfc; border-radius: 1.5rem; padding: 2rem; margin: 2rem 0; box-shadow: 0 4px 20px rgba(4, 107, 252, 0.1); }
    .key-takeaways h3 { color: #04143d; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; margin-top: 0 !important; }
    .key-takeaways ul { list-style: none; padding: 0; margin: 0; }
    .key-takeaways li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(4, 107, 252, 0.1); color: #475569; }
    .key-takeaways li:last-child { border-bottom: none; }
    .key-takeaways li strong { color: #04143d; }

    /* Case Study Box */
    .case-study-box { background: linear-gradient(135deg, #04143d 0%, #0a2a5e 100%); border-radius: 1.5rem; color: white; margin: 2rem 0; overflow: hidden; box-shadow: 0 10px 40px rgba(4, 20, 61, 0.3); }
    .case-study-content { padding: 2rem; }
    .case-study-box p { color: #ffffff !important; }
    .case-study-metric { background: rgba(255,255,255,0.1); border-radius: 1rem; padding: 1rem; text-align: center; }
    .case-study-metric .value { font-size: 1.5rem; font-weight: 700; }
    .case-study-metric .label { font-size: 0.75rem; color: #ffffff !important; margin-top: 0.25rem; font-weight: 500; }
    .case-study-metric.positive .value { color: #10b981; }
    .case-study-metric.negative .value { color: #dc2626; }
    .case-study-metric.neutral .value { color: #ff9900; }

    /* Factor Card */
    .factor-card { background: white; border-radius: 1rem; padding: 1.25rem; border: 1px solid #e2e8f0; transition: all 0.3s ease; }
    .factor-card:hover { border-color: #046bfc; box-shadow: 0 4px 20px rgba(4, 107, 252, 0.1); }
    .factor-number { width: 32px; height: 32px; background: linear-gradient(135deg, #046bfc 0%, #0356c9 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }

    /* Strategy Card */
    .strategy-card { background: white; border-radius: 1rem; padding: 1.5rem; border-left: 4px solid #046bfc; box-shadow: 0 2px 10px rgba(4, 20, 61, 0.06); margin-bottom: 1rem; }
    .strategy-card.success { border-left-color: #10b981; }
    .strategy-card.warning { border-left-color: #ff9900; }

    /* SellerMagnet Feature */
    .sm-feature { background: linear-gradient(135deg, rgba(4, 107, 252, 0.05) 0%, rgba(255, 153, 0, 0.05) 100%); border-radius: 1rem; padding: 1.25rem; border: 1px solid rgba(4, 107, 252, 0.15); }

    /* CTA Section */
    .cta-section { position: relative; overflow: hidden; }
    .cta-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 40%, rgba(4, 107, 252, 0.15) 0%, transparent 40%), radial-gradient(circle at 70% 60%, rgba(255, 153, 0, 0.12) 0%, transparent 40%); animation: ctaRotate 25s linear infinite; }
    @keyframes ctaRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

    /* Mobile TOC */
    .mobile-toc-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .mobile-toc-content.open { max-height: 500px; }

    /* Sticky CTA */
    .sticky-cta { transform: translateY(100%); transition: transform 0.3s ease; }
    .sticky-cta.visible { transform: translateY(0); }

    /* Promo Banner */
    .promo-banner { background: linear-gradient(90deg, #04143d 0%, #0a2a5e 100%); }

    /* Glossary Link */
    .glossary-link { color: #046bfc; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
    .glossary-link:hover { text-decoration-style: solid; }

    /* Buy Box Visual */
    .buybox-visual { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border: 2px solid #ff9900; border-radius: 1rem; padding: 1.5rem; position: relative; }
    .buybox-visual::before { content: '🏆'; position: absolute; top: -12px; right: 16px; font-size: 1.5rem; }
    .buybox-button { background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%); color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; text-align: center; display: block; margin-top: 1rem; }

    /* Comparison Visual */
    .comparison-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
    @media (max-width: 640px) { .comparison-visual { grid-template-columns: 1fr; } }
    .comparison-card { padding: 1.25rem; border-radius: 1rem; text-align: center; }
    .comparison-card.winner { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); border: 2px solid #10b981; }
    .comparison-card.loser { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); border: 2px solid #dc2626; }

    /* FAQ Accordion */
    .faq-item { background: white; border: 1px solid #e2e8f0; border-radius: 1rem; margin-bottom: 0.75rem; overflow: hidden; transition: all 0.3s ease; }
    .faq-item:hover { border-color: #046bfc; box-shadow: 0 4px 15px rgba(4, 107, 252, 0.1); }
    .faq-item.active { border-color: #046bfc; box-shadow: 0 4px 20px rgba(4, 107, 252, 0.15); }
    .faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: #04143d; background: white; transition: all 0.2s ease; width: 100%; text-align: left; }
    .faq-question span { flex: 1; padding-right: 1rem; }
    .faq-question:hover { background: rgba(4, 107, 252, 0.03); }
    .faq-item.active .faq-question { background: rgba(4, 107, 252, 0.05); color: #046bfc; }
    .faq-icon { width: 24px; height: 24px; transition: transform 0.3s ease; flex-shrink: 0; }
    .faq-item.active .faq-icon { transform: rotate(180deg); }
    .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
    .faq-item.active .faq-answer { max-height: 500px; }
    .faq-answer-content { padding: 0 1.5rem 1.5rem 1.5rem; color: #475569; line-height: 1.7; }

    /* Related Article Card */
    .related-card { background: white; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 15px rgba(4, 20, 61, 0.08); border: 1px solid #e2e8f0; transition: all 0.3s ease; }
    .related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(4, 107, 252, 0.15); border-color: #046bfc; }
    .related-card-image { height: 140px; background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%); display: flex; align-items: center; justify-content: center; }

    /* Video Container */
    .video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 1rem; box-shadow: 0 8px 30px rgba(4, 20, 61, 0.15); }
    .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

    /* Video Facade for Lazy Loading */
    .video-facade-container { transition: all 0.3s ease; }
    .video-facade-container:hover { box-shadow: 0 12px 40px rgba(4, 20, 61, 0.25); }
    .video-facade-container:focus-visible { outline: 3px solid #046bfc; outline-offset: 2px; }
    .aspect-video { aspect-ratio: 16/9; }

    /* Featured Snippet Box */
    .featured-snippet-box { position: relative; }
    .featured-snippet-box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, #ff9900, #e68a00); border-radius: 4px 0 0 4px; }

    /* TL;DR Box */
    .tldr-box { position: relative; }
    .tldr-box::before { content: ''; position: absolute; top: -2px; left: 20px; right: 20px; height: 4px; background: linear-gradient(90deg, #046bfc, #ff9900, #10b981); border-radius: 0 0 4px 4px; }

    /* Infographic animations */
    .factor-bar-item .h-3 > div { animation: barGrow 1s ease-out forwards; transform-origin: left; }
    @keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
