/**
 * ============================================================================
 * WARAP HOME PAGE CSS v1.0 - PRODUCTION
 * ============================================================================
 * Styles premium pour page d'accueil style Amazon/Fiverr Africain
 * Mobile-First | Modern Design
 * Date: 2026-01-14
 * ============================================================================
 */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */
:root {
    --home-primary: #4f46e5;
    --home-primary-dark: #4338ca;
    --home-secondary: #f59e0b;
    --home-secondary-dark: #d97706;
    --home-accent-green: #10b981;
    --home-accent-red: #ef4444;
    --home-gradient-start: #4f46e5;
    --home-gradient-end: #7c3aed;
    --home-african-gold: #d4af37;
    --home-african-green: #228b22;
}

/* ============================================================================
   HERO SECTION - PREMIUM STYLE
   ============================================================================ */
.hero-premium {
    background: linear-gradient(135deg, var(--home-gradient-start) 0%, var(--home-gradient-end) 50%, #1e1b4b 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-premium .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: var(--home-secondary);
}

.hero-title-premium {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title-premium .highlight {
    background: linear-gradient(135deg, var(--home-secondary), var(--home-african-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ============================================================================
   SEARCH BAR - AMAZON STYLE
   ============================================================================ */
.hero-search {
    background: white;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-bottom: 2rem;
}

.search-inner {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.search-category {
    padding: 1rem 1.25rem;
    border: none;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    min-width: 140px;
    display: none;
}

@media (min-width: 768px) {
    .search-category {
        display: block;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: #9ca3af;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--home-primary), var(--home-gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.4);
}

.search-btn span {
    display: none;
}

@media (min-width: 768px) {
    .search-btn span {
        display: inline;
    }
}

/* Search suggestions */
.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-suggestion {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-suggestion:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================================================
   HERO STATS
   ============================================================================ */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================================================
   CATEGORIES SECTION - PREMIUM
   ============================================================================ */
.categories-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--home-primary);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--home-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.section-link:hover {
    gap: 0.75rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--home-primary);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================================
   SERVICES SECTION - FIVERR STYLE
   ============================================================================ */
.services-section {
    padding: 5rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-image {
    height: 160px;
    background: linear-gradient(135deg, var(--home-primary), var(--home-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--home-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-body {
    padding: 1.25rem;
}

.service-seller {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-accent-green), #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.service-seller-info h5 {
    font-size: 0.85rem;
    margin: 0;
    font-weight: 600;
}

.service-seller-info span {
    font-size: 0.75rem;
    color: var(--home-accent-green);
}

.service-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--home-secondary);
    font-size: 0.85rem;
}

.service-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.service-price strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ============================================================================
   TOP SELLERS - AMAZON STYLE
   ============================================================================ */
.sellers-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.sellers-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sellers-scroll::-webkit-scrollbar {
    display: none;
}

.seller-card {
    flex-shrink: 0;
    width: 200px;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.seller-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--home-primary), var(--home-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.seller-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--home-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    border: 2px solid white;
}

.seller-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.seller-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.seller-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.seller-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.seller-stats i {
    color: var(--home-secondary);
}

/* ============================================================================
   TRUST BADGES SECTION
   ============================================================================ */
.trust-section {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-item {
    text-align: center;
}

.trust-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--home-primary);
}

.trust-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================================
   TESTIMONIALS SECTION
   ============================================================================ */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e1b4b 0%, var(--home-primary-dark) 100%);
}

.testimonials-section .section-title {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-stars {
    color: var(--home-secondary);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-secondary), var(--home-african-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-info h5 {
    color: white;
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.testimonial-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ============================================================================
   CTA SECTION - PREMIUM
   ============================================================================ */
.cta-premium {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--home-secondary), var(--home-african-gold));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-premium .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--home-secondary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Staggered animations */
.animate-fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-fade-in:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-fade-in:nth-child(6) {
    animation-delay: 0.6s;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media (max-width: 768px) {
    .hero-premium {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-title-premium {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}