/* Marketplace Section */
.marketplace {
    padding: 120px 24px;
    background: var(--bg-light);
}

.marketplace-header {
    text-align: center;
    margin-bottom: 48px;
}

.marketplace-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.marketplace-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
}

.marketplace-search {
    max-width: 600px;
    margin: 0 auto 48px;
    position: relative;
}

.marketplace-search input {
    width: 100%;
    padding: 16px 48px 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.marketplace-search input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.marketplace-search::after {
    content: '🔍';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.marketplace-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #040f3a, #1b49ff);
    color: white;
    border-color: transparent;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .marketplace {
        padding: 64px 14px;
    }

    .marketplace-header {
        margin-bottom: 24px;
    }

    .marketplace-header h2 {
        font-size: 38px;
    }

    .marketplace-header p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .marketplace-categories {
        margin-bottom: 20px;
        gap: 8px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .app-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .app-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .app-category {
        margin-bottom: 10px;
    }

    .app-card h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .app-card p {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .install-btn,
    .details-btn {
        padding: 9px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
}

.app-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid var(--border);
    cursor: pointer;
    position: relative;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.app-card.selected {
    border-color: var(--primary-blue);
    border-width: 3px;
    background: rgba(0, 102, 255, 0.05);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.2);
    transform: translateY(-8px);
}

.app-card.selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.app-card .install-btn {
    pointer-events: auto;
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.app-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.app-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.details-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.details-btn:hover {
    background: rgba(0, 102, 255, 0.08);
    transform: translateY(-2px);
}

.app-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.install-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #040f3a, #1b49ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 102, 255, 0.3);
}

.one-click-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success-green);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.marketplace-cta {
    text-align: center;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

.marketplace-cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

