/* ========================================
   MARKETPLACE PAGE - COMPLETE STANDALONE STYLES
   ======================================== */

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8fafc;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-red: #A01D26;
    --primary-red-dark: #8b1920;
    --primary-red-light: #c42532;
    --dark-text: #1a1a1a;
    --light-text: #666;
    --lighter-text: #888;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --header-height: 100px;
    --creator-color: #7c3aed;
    --b2b-color: #A01D26;
    --local-color: #059669;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.marketplace-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 140px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.marketplace-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.marketplace-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.marketplace-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marketplace-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.marketplace-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.marketplace-hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature i {
    color: var(--primary-red-light);
    font-size: 1.1rem;
}

.hero-feature span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* ===== MARKETPLACES SECTION ===== */
.marketplaces-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.marketplace-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===== MARKETPLACE CARD ===== */
.marketplace-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.marketplace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.creator-card::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.b2b-card::before {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
}

.local-card::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.creator-card .card-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.1));
    color: var(--creator-color);
}

.b2b-card .card-icon {
    background: linear-gradient(135deg, rgba(160, 29, 38, 0.1), rgba(196, 37, 50, 0.1));
    color: var(--b2b-color);
}

.local-card .card-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(52, 211, 153, 0.1));
    color: var(--local-color);
}

.card-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    background: #f0f0f0;
    color: var(--light-text);
}

.card-badge.featured {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    color: white;
}

.marketplace-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.card-description {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== B2B CATEGORIES ===== */
.b2b-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 12px;
}

.b2b-category {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.b2b-category .category-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(160, 29, 38, 0.1);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.b2b-category h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 3px;
}

.b2b-category p {
    font-size: 0.8rem;
    color: var(--light-text);
    line-height: 1.5;
}

/* ===== CARD FEATURES ===== */
.card-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.card-features li i {
    color: #22c55e;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== CARD STATS ===== */
.card-stats {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.card-stats .stat {
    text-align: center;
    flex: 1;
}

.card-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.card-stats .stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* ===== CARD BUTTONS ===== */
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.creator-card .card-button {
    background: linear-gradient(135deg, var(--creator-color), #a78bfa);
    color: white;
}

.creator-card .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.b2b-card .card-button {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    color: white;
}

.b2b-card .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(160, 29, 38, 0.4);
}

.local-card .card-button {
    background: linear-gradient(135deg, var(--local-color), #34d399);
    color: white;
}

.local-card .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
    padding: 80px 20px;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(160, 29, 38, 0.1), rgba(196, 37, 50, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary-red);
}

.benefit-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: white;
    color: var(--primary-red);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

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

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .marketplace-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .marketplace-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .marketplace-hero {
        padding: 120px 20px 60px;
    }

    .marketplace-hero h1 {
        font-size: 2rem;
    }

    .marketplace-hero-subtitle {
        font-size: 1rem;
    }

    .marketplace-hero-features {
        gap: 10px;
    }

    .hero-feature {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

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

    .marketplaces-section,
    .why-choose-section,
    .cta-section {
        padding: 60px 15px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        padding: 20px 15px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

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

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

@media (max-width: 480px) {
    .marketplace-hero h1 {
        font-size: 1.8rem;
    }

    .marketplace-card {
        padding: 25px 20px;
    }

    .card-stats {
        flex-direction: column;
        gap: 15px;
    }

    .b2b-categories {
        padding: 12px;
    }
}
