/* ════════════════════════════════════════════════════════════════════════════════
   Kmacims Marketplace Enhancement - Phase 2 CSS
   Trust Strip, Outcomes, Statistics, Featured Products
   ════════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   GENERAL STYLING
   ───────────────────────────────────────────────────────────────────────────── */

.marketplace-enhanced {
    background: #fafafa;
}

.marketplace-enhanced .section {
    padding: var(--space-12) 0;
}

.marketplace-enhanced .section-lg {
    padding: var(--space-16) 0;
}

.marketplace-enhanced .section-xl {
    padding: var(--space-20) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header.centered {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TRUST STRIP
   ───────────────────────────────────────────────────────────────────────────── */

.trust-strip {
    background: linear-gradient(135deg, #2d8c2d 0%, #1f6b1f 100%);
    padding: var(--space-6) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--space-2) 0;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.trust-text {
    flex: 1;
}

@media (max-width: 768px) {
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .trust-item {
        font-size: 0.85rem;
        padding: var(--space-1) 0;
    }

    .trust-icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MARKETPLACE STATISTICS
   ───────────────────────────────────────────────────────────────────────────── */

.marketplace-stats {
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.stat-card {
    background: white;
    padding: var(--space-6);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d8c2d;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-card {
        padding: var(--space-4);
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CATEGORY PREVIEW
   ───────────────────────────────────────────────────────────────────────────── */

.category-preview {
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef0f2 100%);
    padding: var(--space-6);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 140, 45, 0.1) 0%, rgba(31, 107, 31, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    border-color: #2d8c2d;
    box-shadow: 0 8px 24px rgba(45, 140, 45, 0.15);
    transform: translateY(-4px);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: var(--space-2) 0;
    position: relative;
    z-index: 1;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.category-arrow {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.category-card:hover .category-arrow {
    opacity: 1;
    right: var(--space-2);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .category-card {
        padding: var(--space-4);
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .category-card p {
        font-size: 0.8rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUSINESS OUTCOMES SECTIONS
   ───────────────────────────────────────────────────────────────────────────── */

.outcomes-sections {
    background: #f5f5f5;
}

.outcome-section {
    background: white;
    padding: var(--space-8);
    border-radius: 12px;
    margin-bottom: var(--space-8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #2d8c2d;
}

.outcome-section.outcome-launch {
    border-left-color: #FF6B6B;
}

.outcome-section.outcome-finances {
    border-left-color: #4ECDC4;
}

.outcome-section.outcome-run {
    border-left-color: #45B7D1;
}

.outcome-section.outcome-automate {
    border-left-color: #F7B731;
}

.outcome-section.outcome-software {
    border-left-color: #5F27CD;
}

.outcome-section.outcome-research {
    border-left-color: #00D2D3;
}

.outcome-section.outcome-brand {
    border-left-color: #FF9FF3;
}

.outcome-section.outcome-industry {
    border-left-color: #54A0FF;
}

.outcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid #f0f0f0;
}

.outcome-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.outcome-icon {
    font-size: 2rem;
}

.outcome-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.outcome-view-all {
    color: #2d8c2d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.outcome-view-all:hover {
    color: #1f6b1f;
}

.outcome-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-6);
}

.outcome-product-card {
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.outcome-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.outcome-product-card .product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #e0e0e0;
    overflow: hidden;
}

.outcome-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.outcome-product-card:hover .product-image img {
    transform: scale(1.05);
}

.outcome-product-card .product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
}

.product-content {
    padding: var(--space-3);
    flex: 1;
}

.outcome-product-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--space-2) 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.product-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    border-top: 1px solid #f0f0f0;
    gap: var(--space-2);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d8c2d;
}

.outcome-empty {
    padding: var(--space-8);
    text-align: center;
    color: #999;
}

@media (max-width: 768px) {
    .outcome-section {
        padding: var(--space-6);
    }

    .outcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .outcome-products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED PRODUCTS
   ───────────────────────────────────────────────────────────────────────────── */

.featured-products {
    background: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.featured-image {
    width: 100%;
    aspect-ratio: 1;
    background: #e0e0e0;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

.featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
}

.featured-content {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 var(--space-3) 0;
    line-height: 1.3;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid #f0f0f0;
}

.featured-footer .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d8c2d;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .featured-card h3 {
        font-size: 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.marketplace-cta {
    background: linear-gradient(135deg, #2d8c2d 0%, #1f6b1f 100%);
    padding: var(--space-16) 0;
}

.cta-card {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-12);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-card h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-2);
}

.cta-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .marketplace-cta {
        padding: var(--space-12) 0;
    }

    .cta-card {
        padding: var(--space-8);
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .cta-card p {
        font-size: 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   BADGE STYLING
   ───────────────────────────────────────────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-new {
    background: #FFE5E5;
    color: #C92A2A;
}

.badge-best-seller {
    background: #FFF3CD;
    color: #856404;
}

.badge-premium {
    background: #E7F3FF;
    color: #1565C0;
}

.badge-staff-picked {
    background: #F3E5FF;
    color: #6A1B9A;
}

.badge-nigeria-edition {
    background: #E8F5E9;
    color: #1B5E20;
}

.badge-enterprise-ready {
    background: #E0F2F1;
    color: #004D40;
}

.badge-investor-edition {
    background: #FCE4EC;
    color: #880E4F;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: #2d8c2d;
    color: white;
}

.btn-primary:hover {
    background: #1f6b1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 140, 45, 0.3);
}

.btn-secondary {
    background: white;
    color: #2d8c2d;
    border: 2px solid #2d8c2d;
}

.btn-secondary:hover {
    background: #2d8c2d;
    color: white;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate="fade-up"] {
    animation: fadeUp 0.6s ease-out;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-6);
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .marketplace-enhanced .section {
        padding: var(--space-8) 0;
    }

    .marketplace-enhanced .section-lg {
        padding: var(--space-10) 0;
    }

    .marketplace-enhanced .section-xl {
        padding: var(--space-12) 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .marketplace-enhanced .section {
        padding: var(--space-6) 0;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .trust-items {
        grid-template-columns: 1fr;
    }
}
