/* CSS for index_amazon_automate_pricing_vs_repricer_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 */
    .article-content h2 {
        color: #04143d;
        font-weight: 700;
        font-size: 1.75rem;
        margin-top: 3rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
        border-bottom: 3px solid #046bfc;
    }
    .article-content h3 {
        color: #04143d;
        font-weight: 600;
        font-size: 1.35rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    /* Cards h3 - no margins, vertically centered */
    .article-content h3.m-0,
    .article-content .flex h3 {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        font-size: 1.1rem;
    }
    .article-content p {
        color: #475569;
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }
    .article-content p.mb-0 {
        margin-bottom: 0 !important;
    }
    /* White text override for colored cards */
    .article-content p.text-white,
    .article-content p[class*="text-white"] {
        color: white !important;
    }
    .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: 3px;
        background: linear-gradient(90deg, #046bfc, #ff9900);
        z-index: 9999;
        transition: width 0.1s ease;
    }

    /* 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);
    }

    /* Screenshot Carousel */
    .screenshot-carousel {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0;
        scrollbar-width: thin;
        scrollbar-color: #046bfc #e2e8f0;
    }
    .screenshot-carousel::-webkit-scrollbar {
        height: 6px;
    }
    .screenshot-carousel::-webkit-scrollbar-track {
        background: #e2e8f0;
        border-radius: 3px;
    }
    .screenshot-carousel::-webkit-scrollbar-thumb {
        background: #046bfc;
        border-radius: 3px;
    }
    .screenshot-item {
        flex: 0 0 300px;
        scroll-snap-align: start;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    .screenshot-item:hover {
        transform: scale(1.02);
    }
    .screenshot-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 0.75rem;
        border: 2px solid #e2e8f0;
        transition: border-color 0.3s ease;
    }
    .screenshot-item:hover img {
        border-color: #046bfc;
    }

    /* Lightbox */
    .lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(4, 20, 61, 0.95);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }
    .lightbox.active {
        display: flex;
    }
    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 1rem;
        box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    }
    .lightbox-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .lightbox-close:hover {
        transform: scale(1.1);
    }

    /* Infographic */
    .infographic-bar {
        height: 2rem;
        border-radius: 0.5rem;
        transition: width 1s ease-out;
    }
    @keyframes growBar {
        from { width: 0; }
    }
    .infographic-bar.animated {
        animation: growBar 1s ease-out forwards;
    }

    /* Mobile TOC Dropdown */
    .mobile-toc-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .mobile-toc-content.open {
        max-height: 500px;
    }
    .mobile-toc-btn svg:last-child {
        transition: transform 0.3s ease;
    }
    .mobile-toc-btn.open svg:last-child {
        transform: rotate(180deg);
    }

    /* Mobile Comparison Cards */
    .comparison-card {
        background: white;
        border-radius: 1rem;
        border: 1px solid #e2e8f0;
        overflow: hidden;
        margin-bottom: 1rem;
    }
    .comparison-card-header {
        background: linear-gradient(135deg, #04143d 0%, #0a2a5e 100%);
        color: white;
        padding: 1rem;
        font-weight: 700;
    }
    .comparison-card-body {
        padding: 0;
    }
    .comparison-card-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-bottom: 1px solid #e2e8f0;
    }
    .comparison-card-row:last-child {
        border-bottom: none;
    }
    .comparison-card-cell {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    .comparison-card-cell.amazon {
        background: rgba(255, 153, 0, 0.05);
        border-right: 1px solid #e2e8f0;
    }
    .comparison-card-cell.sellermagnet {
        background: rgba(4, 107, 252, 0.05);
    }
    .comparison-card-cell-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #64748b;
        margin-bottom: 0.25rem;
    }

    /* YouTube Lazy Load */
    .youtube-lazy {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        background: linear-gradient(135deg, #04143d 0%, #0a2a5e 100%);
        border-radius: 1rem;
        cursor: pointer;
    }
    .youtube-lazy::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 68px;
        height: 48px;
        background: #ff0000;
        border-radius: 14px;
        z-index: 2;
        transition: background 0.3s ease;
    }
    .youtube-lazy:hover::before {
        background: #cc0000;
    }
    .youtube-lazy::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-40%, -50%);
        border-style: solid;
        border-width: 10px 0 10px 18px;
        border-color: transparent transparent transparent #fff;
        z-index: 3;
    }
    .youtube-lazy img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .youtube-lazy iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    .youtube-lazy.loaded::before,
    .youtube-lazy.loaded::after {
        display: none;
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #046bfc 0%, #0356c9 100%);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(4, 107, 252, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
        z-index: 50;
    }
    .back-to-top:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(4, 107, 252, 0.5);
    }
    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Scroll Reveal Animations */
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal.animate {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal-left.animate {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal-right.animate {
        opacity: 0;
        transform: translateX(30px);
    }
    .reveal-scale {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal-scale.animate {
        opacity: 0;
        transform: scale(0.9);
    }
    /* Staggered animations for grid items */
    .reveal-stagger > * {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    .reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
    .reveal-stagger > *:nth-child(2) { transition-delay: 100ms; }
    .reveal-stagger > *:nth-child(3) { transition-delay: 200ms; }
    .reveal-stagger > *:nth-child(4) { transition-delay: 300ms; }
    .reveal-stagger > *:nth-child(5) { transition-delay: 400ms; }
    .reveal-stagger > *:nth-child(6) { transition-delay: 500ms; }

    /* Float animation for icons */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
    .animate-float {
        animation: float 3s ease-in-out infinite;
    }

    /* Shine effect on hover */
    .shine-hover {
        position: relative;
        overflow: hidden;
    }
    .shine-hover::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    .shine-hover:hover::before {
        left: 100%;
    }

    /* Glow effect for CTAs */
    @keyframes glow {
        0%, 100% { box-shadow: 0 0 5px rgba(4, 107, 252, 0.5), 0 0 10px rgba(4, 107, 252, 0.3); }
        50% { box-shadow: 0 0 15px rgba(4, 107, 252, 0.6), 0 0 25px rgba(4, 107, 252, 0.4); }
    }
    .animate-glow {
        animation: glow 2s ease-in-out infinite;
    }

    /* Number counter animation */
    .counter-number {
        display: inline-block;
    }

    @media (max-width: 767px) {
        .back-to-top {
            bottom: 1rem;
            right: 1rem;
            width: 44px;
            height: 44px;
        }
    }

    /* Mobile Responsive - Comprehensive */
    @media (max-width: 767px) {
        /* Hide comparison table, show mobile cards */
        .comparison-table-wrapper {
            display: none !important;
        }
        .comparison-cards-mobile {
            display: block !important;
        }
        
        /* Main content */
        main {
            padding: 1rem !important;
        }
        
        /* All grids become single column */
        .grid {
            display: flex !important;
            flex-direction: column !important;
            gap: 0.75rem !important;
        }
        
        /* Reset grid column spans */
        [class*="col-span"],
        [class*="row-span"] {
            grid-column: auto !important;
            grid-row: auto !important;
        }
        
        /* Article content */
        .article-content {
            padding: 0 !important;
        }
        .article-content h2 {
            font-size: 1.25rem !important;
            margin-top: 1.5rem !important;
        }
        .article-content h3 {
            font-size: 1rem !important;
            height: auto !important;
        }
        .article-content p {
            font-size: 0.875rem !important;
            line-height: 1.6 !important;
        }
        
        /* Cards - Feature, Profile, Comparison */
        .feature-card,
        .profile-card,
        .highlight-box {
            padding: 1rem !important;
        }
        .feature-card h3,
        .profile-card h3 {
            font-size: 0.9rem !important;
            height: auto !important;
        }
        
        /* Icons in cards smaller */
        .w-10.h-10,
        .w-12.h-12 {
            width: 2.5rem !important;
            height: 2.5rem !important;
        }
        .w-11.h-11 {
            width: 2.5rem !important;
            height: 2.5rem !important;
        }
        
        /* Flex gap reduction */
        .flex.gap-3,
        .flex.gap-4 {
            gap: 0.5rem !important;
        }
        
        /* Summary/info boxes */
        .bg-slate-50.border-2,
        .rounded-2xl.border {
            padding: 1rem !important;
        }
        
        /* Bento stats cards */
        .text-5xl, .text-6xl {
            font-size: 2rem !important;
        }
        .text-3xl, .text-4xl {
            font-size: 1.5rem !important;
        }
        .text-2xl {
            font-size: 1.25rem !important;
        }
        
        /* Screenshot carousel */
        .screenshot-carousel {
            gap: 0.5rem !important;
        }
        .screenshot-item {
            min-width: 200px !important;
        }
        
        /* CTA section */
        .cta-section {
            padding: 1.5rem 1rem !important;
        }
        .cta-section h2 {
            font-size: 1.25rem !important;
        }
        .cta-section a {
            width: 100% !important;
            text-align: center !important;
        }
        
        /* FAQ */
        #faq details summary {
            padding: 0.75rem 1rem !important;
            font-size: 0.875rem !important;
        }
        #faq details .px-5 {
            padding-left: 1rem !important;
            padding-right: 1rem !important;
        }
        
        /* Progress bars section */
        #comparison-cards .space-y-5 {
            gap: 0.75rem !important;
        }
        
        /* Padding reductions */
        .p-6 {
            padding: 1rem !important;
        }
        .p-8 {
            padding: 1.25rem !important;
        }
        .px-6 {
            padding-left: 1rem !important;
            padding-right: 1rem !important;
        }
        .py-16 {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }
        
        /* Gap reductions */
        .gap-6 {
            gap: 0.75rem !important;
        }
        .gap-8 {
            gap: 1rem !important;
        }
        
        /* Margin reductions */
        .my-8, .my-10 {
            margin-top: 1.5rem !important;
            margin-bottom: 1.5rem !important;
        }
        .mb-8 {
            margin-bottom: 1rem !important;
        }
        
        /* Related articles */
        section.bg-slate-100 .grid {
            gap: 1rem !important;
        }
        section.bg-slate-100 .h-40 {
            height: 8rem !important;
        }
    }
    
    @media (min-width: 768px) {
        .comparison-cards-mobile {
            display: none;
        }
    }
