/* CSS for index_amazon_fba_vs_fbm_newww.html */

* {
        font-family: 'Inter', sans-serif;
    }

    /* Mega Menu Styles */
    .mega-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
    }
    .nav-item:hover .mega-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: #046bfc;
        transition: width 0.3s ease;
    }
    .nav-link:hover::after {
        width: 100%;
    }
    .nav-item:hover .chevron {
        transform: rotate(180deg);
    }
    .chevron {
        transition: transform 0.25s ease;
    }
    .menu-item {
        transition: all 0.2s ease;
    }
    .menu-item:hover {
        background: rgba(4, 107, 252, 0.08);
        transform: translateX(4px);
    }
    .menu-item:hover .menu-icon {
        background: #046bfc;
        color: white;
    }
    .lang-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(5px);
        transition: all 0.2s ease;
    }
    .lang-selector:hover .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .promo-banner {
        background: linear-gradient(90deg, #046bfc 0%, #04143d 30%, #04143d 70%, #046bfc 100%);
    }
    .hot-badge {
        animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    /* 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(4, 107, 252, 0.25);
        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 - Higher specificity to override Tailwind reset */
    .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;
    }
    @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);
    }

    /* Comparison Table */
    .comparison-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(4, 20, 61, 0.1);
    }
    .comparison-table th {
        background: linear-gradient(135deg, #04143d 0%, #0a2a5e 100%);
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
    }
    .comparison-table td {
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
        color: #475569;
    }
    .comparison-table tr:last-child td {
        border-bottom: none;
    }
    .comparison-table tr:nth-child(even) {
        background: #f8fafc;
    }
    .comparison-table tr:hover {
        background: rgba(4, 107, 252, 0.05);
    }

    /* 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.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.success {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
        border-left-color: #10b981;
    }

    /* CTA Section */
    .cta-section {
        background: linear-gradient(135deg, #04143d 0%, #0a2a5e 50%, #04143d 100%);
        position: relative;
        overflow: hidden;
    }
    .cta-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(4, 107, 252, 0.1) 0%, transparent 50%);
        animation: rotate 30s linear infinite;
    }
    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    /* Table of Contents */
    .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);
    }

    /* Reading Progress Bar */
    .reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 4px;
        background: linear-gradient(90deg, #046bfc, #3d8bfd, #ff9900);
        z-index: 9999;
        transition: width 0.1s ease;
        box-shadow: 0 0 10px rgba(4, 107, 252, 0.5), 0 0 5px rgba(255, 153, 0, 0.3);
    }

    /* Flow Diagram Styles */
    .flow-diagram {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 1.5rem;
        padding: 2rem;
        margin: 2rem 0;
    }
    .flow-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: white;
        border-radius: 1rem;
        box-shadow: 0 2px 10px rgba(4, 20, 61, 0.06);
        border: 1px solid #e2e8f0;
        position: relative;
    }
    .flow-step.fba {
        border-left: 4px solid #046bfc;
    }
    .flow-step.fbm {
        border-left: 4px solid #ff9900;
    }
    .flow-arrow {
        display: flex;
        justify-content: center;
        padding: 0.5rem 0;
    }
    .flow-arrow svg {
        color: #94a3b8;
    }

    /* Cost Infographic Styles */
    .cost-infographic {
        background: white;
        border-radius: 1.5rem;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(4, 20, 61, 0.08);
        margin: 2rem 0;
    }
    .cost-bar {
        height: 2.5rem;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        padding: 0 1rem;
        font-weight: 600;
        font-size: 0.875rem;
        color: white;
        position: relative;
        overflow: hidden;
    }
    .cost-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    }
    .cost-bar.fba {
        background: linear-gradient(90deg, #046bfc 0%, #3d8bfd 100%);
    }
    .cost-bar.fbm {
        background: linear-gradient(90deg, #ff9900 0%, #ffb84d 100%);
    }
    .cost-legend {
        display: flex;
        gap: 1.5rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    .cost-legend-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #475569;
    }
    .cost-legend-dot {
        width: 12px;
        height: 12px;
        border-radius: 3px;
    }

    /* Screenshot Placeholder Styles */
    .screenshot-placeholder {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border: 2px dashed #cbd5e1;
        border-radius: 1rem;
        padding: 3rem 2rem;
        text-align: center;
        margin: 2rem 0;
        position: relative;
        overflow: hidden;
    }
    .screenshot-placeholder::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(4, 107, 252, 0.03) 10px,
            rgba(4, 107, 252, 0.03) 20px
        );
    }
    .screenshot-placeholder-content {
        position: relative;
        z-index: 1;
    }

    /* Real Case Study Box */
    .case-study-box {
        background: linear-gradient(135deg, #04143d 0%, #0a2a5e 100%);
        border-radius: 1.5rem;
        padding: 2rem;
        margin: 2rem 0;
        color: white;
        position: relative;
        overflow: hidden;
    }
    .case-study-box::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(4, 107, 252, 0.3) 0%, transparent 70%);
        pointer-events: none;
    }
    .case-study-box::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 153, 0, 0.2) 0%, transparent 70%);
        pointer-events: none;
    }
    .case-study-content {
        position: relative;
        z-index: 1;
    }
    .case-study-metric {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 1rem;
        padding: 1.25rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .case-study-metric .value {
        font-size: 1.75rem;
        font-weight: 800;
    }
    .case-study-metric .label {
        font-size: 0.75rem;
        opacity: 0.8;
        margin-top: 0.25rem;
    }
    .case-study-metric.positive .value {
        color: #4ade80;
    }
    .case-study-metric.negative .value {
        color: #f87171;
    }
    .case-study-metric.neutral .value {
        color: #fbbf24;
    }

    /* Footer Styles */
    .sticky-cta {
        transform: translateY(100%);
        transition: transform 0.4s ease-out;
    }
    .sticky-cta.visible {
        transform: translateY(0);
    }
    @keyframes scrollMarquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    .marketplace-scroll {
        animation: scrollMarquee 40s linear infinite;
    }
    .marketplace-scroll:hover {
        animation-play-state: paused;
    }
    .lang-dropdown.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* FBA/FBM specific styles */
    .model-card {
        background: white;
        border-radius: 1.5rem;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(4, 20, 61, 0.08);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    .model-card.fba {
        border-color: rgba(4, 107, 252, 0.2);
    }
    .model-card.fbm {
        border-color: rgba(255, 153, 0, 0.2);
    }
    .model-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(4, 107, 252, 0.15);
    }
    .pros-cons-card {
        background: white;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(4, 20, 61, 0.08);
    }
    .pros-cons-card h4 {
        font-size: 1rem !important;
        font-weight: 600;
        color: #04143d;
        margin-bottom: 0.25rem;
    }
    .pros-cons-card p {
        font-size: 0.938rem !important;
        line-height: 1.6;
        color: #64748b;
    }
    .pros-header {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        padding: 1rem 1.5rem;
        font-weight: 600;
    }
    .cons-header {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
        padding: 1rem 1.5rem;
        font-weight: 600;
    }

    /* Mobile TOC Styles */
    .mobile-toc {
        display: none;
    }
    @media (max-width: 1023px) {
        .mobile-toc {
            display: block;
        }
        .desktop-toc {
            display: none;
        }
    }
    .mobile-toc-toggle {
        cursor: pointer;
    }
    .mobile-toc-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .mobile-toc-content.open {
        max-height: 500px;
    }

    /* Mobile Comparison Cards (replace table) */
    .comparison-cards-mobile {
        display: none;
    }
    @media (max-width: 768px) {
        .comparison-table-wrapper {
            display: none;
        }
        .comparison-cards-mobile {
            display: block;
        }
        .comparison-card {
            background: white;
            border-radius: 1rem;
            padding: 1.25rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 10px rgba(4, 20, 61, 0.08);
            border: 1px solid #e2e8f0;
        }
        .comparison-card-header {
            font-weight: 700;
            color: #04143d;
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #046bfc;
        }
        .comparison-card-row {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }
        .comparison-card-label {
            flex: 0 0 60px;
            font-weight: 600;
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
        }
        .comparison-card-label.fba {
            background: rgba(4, 107, 252, 0.1);
            color: #046bfc;
        }
        .comparison-card-label.fbm {
            background: rgba(255, 153, 0, 0.1);
            color: #ff9900;
        }
        .comparison-card-value {
            flex: 1;
            font-size: 0.875rem;
            color: #475569;
        }
        /* Sticky CTA mobile optimization */
        .sticky-cta .max-w-7xl {
            padding: 0;
        }
        .sticky-cta {
            padding: 0.75rem 1rem;
        }
    }

    /* Key Takeaways Box */
    .key-takeaways {
        background: white;
        border: 1px solid #e2e8f0;
        border-left: 4px solid #046bfc;
        border-radius: 0.75rem;
        padding: 1.5rem;
        margin: 2rem 0;
        box-shadow: 0 4px 15px rgba(4, 20, 61, 0.06);
    }
    .key-takeaways h3 {
        color: #04143d;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .key-takeaways h3 svg {
        color: #046bfc;
    }
    .key-takeaways ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .key-takeaways li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        color: #475569;
        font-weight: 400;
        line-height: 1.6;
    }
    .key-takeaways li strong {
        color: #04143d;
        font-weight: 600;
    }
    .key-takeaways li:last-child {
        margin-bottom: 0;
    }

    /* Related Articles */
    .related-articles {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 1.5rem;
        padding: 2rem;
        margin-top: 3rem;
    }
    .related-article-card {
        background: white;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(4, 20, 61, 0.06);
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }
    .related-article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(4, 107, 252, 0.12);
        border-color: rgba(4, 107, 252, 0.3);
    }

    /* Glossary Link Style */
    .glossary-link {
        color: #046bfc;
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 2px;
        cursor: help;
        transition: all 0.2s ease;
    }
    .glossary-link:hover {
        text-decoration-style: solid;
        background: rgba(4, 107, 252, 0.1);
        padding: 0 2px;
        border-radius: 2px;
    }
