/* Modern Marketing Homepage Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 6px 12px -2px rgb(0 0 0 / 0.12);
    --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.15);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Typography */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Modern Hero Section */
.modern-hero {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: var(--text-primary);
    padding: 0.75rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.badge-text {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-headline {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.hero-description {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.hero-description i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    gap: 0.375rem;
}

.hero-cta .btn i {
    font-size: 0.8rem;
}

.hero-cta .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.hero-cta .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-cta .btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.hero-cta .btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Social Proof Stats */
.social-proof {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-proof .stat-item {
    text-align: center;
}

.social-proof .stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.social-proof .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icons-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
    padding: 2rem;
    min-height: 200px;
    justify-content: center;
}

/* Main Marketing Icon */
.main-marketing-icon {
    text-align: center;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

.marketing-icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: rotate(-5deg);
    transition: var(--transition);
    z-index: 5;
}

.marketing-icon-wrapper:hover {
    transform: rotate(0deg) scale(1.05);
}

.marketing-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.4;
}

.marketing-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.main-marketing-icon h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    margin-top: 0.75rem;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Support Icons - Only show on larger screens */
.support-icon {
    position: absolute;
    background: white;
    padding: 0.375rem 0.625rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: none; /* Hidden by default */
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    animation: float 3s ease-in-out infinite;
    border: 2px solid var(--border-color);
    white-space: nowrap;
    z-index: 1;
}

/* Show support icons on larger screens with better positioning */
@media (min-width: 1200px) {
    .support-icon {
        display: flex;
    }
}

/* Hide support icons on smaller screens to prevent overlap */
@media (max-width: 1199px) {
    .support-icon {
        display: none !important;
    }
}

.support-1 {
    top: -15%;
    left: -45%;
    animation-delay: 0s;
}

.support-2 {
    top: -10%;
    right: -50%;
    animation-delay: 0.8s;
}

.support-3 {
    bottom: -15%;
    left: -40%;
    animation-delay: 1.6s;
}

.support-4 {
    bottom: -10%;
    right: -45%;
    animation-delay: 2.4s;
}

.support-icon-wrapper {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: var(--transition);
}

.support-icon:hover .support-icon-wrapper {
    transform: scale(1.1);
}

.support-1 .support-icon-wrapper {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.support-2 .support-icon-wrapper {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.support-3 .support-icon-wrapper {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.support-4 .support-icon-wrapper {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.marketing-icon-wrapper:hover {
    animation: pulse 1s ease-in-out infinite;
}

.support-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

/* Section Styles */
.categories-section,
.featured-products,
.popular-products,
.value-proposition,
.no-products {
    padding: 3rem 0;
}

.categories-section {
    background: var(--bg-light);
}

.featured-products {
    background: var(--bg-white);
}

.popular-products {
    background: var(--bg-light);
}

.value-proposition {
    background: var(--bg-white);
}

/* Section Headers */
.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Category Cards */
.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
}

.category-icon img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Compact Product Cards for Featured Section */
.product-card-compact {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card-compact:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.product-card-compact .card-body {
    padding: 0.75rem;
}

.product-card-compact .card-title {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-card-compact .product-price {
    margin-bottom: 0.75rem;
}

.product-card-compact .current-price {
    font-size: 0.95rem;
    font-weight: 700;
}

.product-card-compact .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-card-compact .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.product-card-compact .mt-auto {
    margin-top: 0.5rem !important;
}

/* Value Proposition Cards */
.value-card {
    text-align: center;
    padding: 2rem 1rem;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.value-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-description {
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.cta-buttons .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.empty-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .hero-headline {
        font-size: 1.875rem;
    }

    .trust-1,
    .trust-2 {
        display: none;
    }
}

@media (max-width: 991px) {
    .modern-hero {
        padding: 0.5rem 0;
        text-align: center;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-description {
        margin: 0 auto 0.75rem;
        font-size: 0.85rem;
    }

    .hero-cta {
        margin-bottom: 0.75rem;
    }

    .social-proof {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .modern-hero {
        padding: 0.875rem 0;
    }

    .hero-headline {
        font-size: 1.375rem;
    }

    .hero-description {
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
    }

    .hero-description i {
        align-self: center;
        margin-top: 0;
    }

    .marketing-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .marketing-icon-wrapper i {
        font-size: 1.5rem;
    }

    .support-icon {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }

    .support-1, .support-3 {
        left: -25%;
    }

    .support-2, .support-4 {
        right: -25%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .social-proof {
        gap: 1rem;
    }

    .social-proof .stat-number {
        font-size: 1.25rem;
    }

    .categories-section,
    .featured-products,
    .popular-products,
    .value-proposition {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .value-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 575px) {
    .modern-hero {
        padding: 0.75rem 0;
    }

    .hero-badge {
        margin-bottom: 0.5rem;
    }

    .hero-headline {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }

    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .marketing-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .marketing-icon-wrapper i {
        font-size: 1.25rem;
    }

    .main-marketing-icon h6 {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
        margin-top: 0.5rem;
    }

    .hero-icons-grid {
        padding: 1rem;
        min-height: 150px;
    }

    .support-icon {
        font-size: 0.65rem;
        padding: 0.25rem 0.375rem;
    }

    .support-icon-wrapper {
        width: 20px;
        height: 20px;
        font-size: 0.5rem;
    }

    .hero-icons-grid {
        padding: 0.5rem;
        min-height: 120px;
    }

    .main-marketing-icon h6 {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        margin-top: 0.375rem;
    }

    .support-1, .support-3 {
        left: -10%;
    }

    .support-2, .support-4 {
        right: -10%;
    }

    .hero-cta {
        margin-bottom: 1rem;
    }

    .hero-cta .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .badge-text {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .social-proof .stat-number {
        font-size: 1rem;
    }

    .social-proof .stat-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .category-name {
        font-size: 0.875rem;
    }

    .category-count {
        font-size: 0.8rem;
    }

    .value-card {
        padding: 1.5rem 0.75rem;
    }

    .value-icon {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .value-title {
        font-size: 1rem;
    }

    .value-description {
        font-size: 0.875rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
.category-card:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modern-hero,
    .cta-section {
        background: white !important;
        color: black !important;
    }

    .trust-indicator,
    .hero-cta,
    .cta-buttons {
        display: none !important;
    }
}

/* CTA Section Compact */
.cta-section-compact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content-compact {
    position: relative;
    z-index: 2;
}

.cta-title-compact {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-description-compact {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-compact {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons-compact .btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-width: 120px;
    justify-content: center;
    font-size: 0.85rem;
}

.cta-buttons-compact .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons-compact .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-1px);
}

.cta-buttons-compact .btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-buttons-compact .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Responsive adjustments for compact CTA */
@media (max-width: 767px) {
    .cta-section-compact {
        padding: 1.25rem 0;
    }

    .cta-title-compact {
        font-size: 1.1rem;
    }

    .cta-description-compact {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .cta-buttons-compact {
        gap: 0.5rem;
    }

    .cta-buttons-compact .btn {
        padding: 0.4rem 1rem;
        min-width: 100px;
        font-size: 0.8rem;
    }

    /* Compact product cards on mobile */
    .product-card-compact .card-body {
        padding: 0.5rem;
    }

    .product-card-compact .card-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .product-card-compact .current-price {
        font-size: 0.85rem;
    }

    .product-card-compact .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .product-card-compact .product-price {
        margin-bottom: 0.5rem;
    }
}
