/**
 * B2B Commerce Solutions Page Styles
 * Enterprise-focused B2B commerce page with platform comparison, case studies, and lead capture
 */

/* ==========================================================================
   Hero Section - Enterprise Branding
   ========================================================================== */

.hero--b2b-commerce {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero--b2b-commerce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero--b2b-commerce .hero__content {
    position: relative;
    z-index: 1;
}

.hero--b2b-commerce h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero--b2b-commerce .hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero Trust Badges */
.hero--b2b-commerce .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.hero--b2b-commerce .trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero--b2b-commerce .trust-badge i {
    font-size: 1.5rem;
    color: #ffd700;
}

.hero--b2b-commerce .trust-badge span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Stats */
.hero--b2b-commerce .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero--b2b-commerce .stat-item {
    text-align: center;
}

.hero--b2b-commerce .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
    margin-bottom: 0.5rem;
}

.hero--b2b-commerce .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Platform Comparison Cards
   ========================================================================== */

#platforms .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#platforms .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

#platforms .card-header {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

#platforms .card-body ul {
    max-height: 400px;
    overflow-y: auto;
}

#platforms .card-body ul::-webkit-scrollbar {
    width: 6px;
}

#platforms .card-body ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#platforms .card-body ul::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#platforms .card-body ul::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Decision Framework */
#platforms .decision-framework ul {
    padding-left: 1.25rem;
}

#platforms .decision-framework li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   B2B Features Categories
   ========================================================================== */

#features .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#features .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

#features .card-body h4 {
    color: #333;
    font-weight: 600;
}

#features .bg-light-gray {
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* ==========================================================================
   Case Studies
   ========================================================================== */

#case-studies .card {
    transition: box-shadow 0.3s ease;
}

#case-studies .card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

#case-studies .card-body {
    padding: 2rem;
}

/* Case Study Metrics Box */
#case-studies .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#case-studies .bg-light .h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

#case-studies blockquote {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 4px;
}

/* ==========================================================================
   Resource Library Section
   ========================================================================== */

#resource-library .card {
    border-left: 4px solid #007bff;
}

#resource-library .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

#resource-library .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
}

#resource-library .additional_resources .card {
    border-left: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#resource-library .additional_resources .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Trust Signals Section
   ========================================================================== */

#trust i {
    transition: transform 0.3s ease, color 0.3s ease;
}

#trust .text-center:hover i {
    transform: scale(1.1);
    color: #0056b3 !important;
}

#trust h4 {
    color: #333;
    font-weight: 600;
}

/* ==========================================================================
   Consultation Form Section
   ========================================================================== */

#consultation .card {
    background: #ffffff;
    border-left: 4px solid #007bff;
}

#consultation h2 {
    color: #333;
    font-weight: 700;
}

/* ==========================================================================
   Sticky Mobile CTA Bar (Phase 2)
   ========================================================================== */

.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1rem;
    z-index: 1000;
    display: none;
}

.mobile-cta-bar .btn {
    width: 48%;
    padding: 0.75rem;
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .mobile-cta-bar {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }

    /* Add padding to body to prevent content overlap */
    body.has-mobile-cta {
        padding-bottom: 80px;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .hero--b2b-commerce h1 {
        font-size: 2rem;
    }

    .hero--b2b-commerce .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero--b2b-commerce .trust-badges {
        justify-content: flex-start;
    }

    .hero--b2b-commerce .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #platforms .card-body ul {
        max-height: none;
    }

    #case-studies .card-body {
        padding: 1.5rem;
    }

    #case-studies .bg-light {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero--b2b-commerce h1 {
        font-size: 1.75rem;
    }

    .hero--b2b-commerce .hero__subtitle {
        font-size: 1rem;
    }

    .hero--b2b-commerce .trust-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }

    .hero--b2b-commerce .stat-value {
        font-size: 2rem;
    }

    #platforms .card-header h3 {
        font-size: 1.25rem;
    }

    #case-studies .bg-light .h3 {
        font-size: 1.5rem;
    }

    #resource-library .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .mobile-cta-bar {
        display: none !important;
    }

    .hero--b2b-commerce {
        background: #16213e;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #platforms .card,
    #case-studies .card,
    #features .card {
        page-break-inside: avoid;
    }
}
